{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import pandas as pd\n",
    "import csv,os\n",
    "from pyecharts.charts import Bar,Tab,Line,Map,Timeline,Grid,Scatter\n",
    "from pyecharts import options as opts\n",
    "import pandas as pd\n",
    "from pyecharts.charts import Bar, Tab, Pie, Line\n",
    "from pyecharts.components import Table"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 世界各国人均抑郁症患病率地图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "dps_p = pd.read_csv('share-with-depression.csv',encoding = 'utf8')\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "dps=dps_p.drop(columns=[\"Code\"])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "dps1=dps.drop(columns=[\"Year\"])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "dpc=dps1.rename(columns={'Prevalence - Depressive disorders - Sex: Both - Age: Age-standardized (Percent) (%)':'precent'})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Entity</th>\n",
       "      <th>precent</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>4.071831</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>4.079531</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>4.088358</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>4.096190</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>4.099582</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6463</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>3.128192</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6464</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>3.140290</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6465</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>3.155710</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6466</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>3.174134</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6467</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>3.192789</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>6468 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "           Entity   precent\n",
       "0     Afghanistan  4.071831\n",
       "1     Afghanistan  4.079531\n",
       "2     Afghanistan  4.088358\n",
       "3     Afghanistan  4.096190\n",
       "4     Afghanistan  4.099582\n",
       "...           ...       ...\n",
       "6463     Zimbabwe  3.128192\n",
       "6464     Zimbabwe  3.140290\n",
       "6465     Zimbabwe  3.155710\n",
       "6466     Zimbabwe  3.174134\n",
       "6467     Zimbabwe  3.192789\n",
       "\n",
       "[6468 rows x 2 columns]"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dpc"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "countrydata=dpc['Entity'].to_list()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>precent</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Entity</th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Afghanistan</th>\n",
       "      <td>4.118622</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Albania</th>\n",
       "      <td>2.190442</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Algeria</th>\n",
       "      <td>3.657743</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>American Samoa</th>\n",
       "      <td>2.940850</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Andean Latin America</th>\n",
       "      <td>2.626773</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Western Sub-Saharan Africa</th>\n",
       "      <td>3.745352</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>World</th>\n",
       "      <td>3.504355</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Yemen</th>\n",
       "      <td>4.004947</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Zambia</th>\n",
       "      <td>3.553940</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Zimbabwe</th>\n",
       "      <td>3.103040</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>231 rows × 1 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                             precent\n",
       "Entity                              \n",
       "Afghanistan                 4.118622\n",
       "Albania                     2.190442\n",
       "Algeria                     3.657743\n",
       "American Samoa              2.940850\n",
       "Andean Latin America        2.626773\n",
       "...                              ...\n",
       "Western Sub-Saharan Africa  3.745352\n",
       "World                       3.504355\n",
       "Yemen                       4.004947\n",
       "Zambia                      3.553940\n",
       "Zimbabwe                    3.103040\n",
       "\n",
       "[231 rows x 1 columns]"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dpc =  dpc.groupby(\"Entity\").mean()\n",
    "dpc"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'precent': {'Afghanistan': 4.118621707411429,\n",
       "  'Albania': 2.1904422523696434,\n",
       "  'Algeria': 3.657742504147143,\n",
       "  'American Samoa': 2.9408500826910715,\n",
       "  'Andean Latin America': 2.6267730087235712,\n",
       "  'Andorra': 3.739450459474285,\n",
       "  'Angola': 4.183141154887143,\n",
       "  'Antigua and Barbuda': 2.5579151358317858,\n",
       "  'Argentina': 3.639181259856429,\n",
       "  'Armenia': 2.6770664284732146,\n",
       "  'Australasia': 4.679497340915715,\n",
       "  'Australia': 4.795486530958215,\n",
       "  'Austria': 3.425945658864643,\n",
       "  'Azerbaijan': 2.5554006524310724,\n",
       "  'Bahamas': 2.6311664568257145,\n",
       "  'Bahrain': 4.146957151344643,\n",
       "  'Bangladesh': 4.187622125011428,\n",
       "  'Barbados': 2.7294921233600005,\n",
       "  'Belarus': 4.106998954844286,\n",
       "  'Belgium': 3.8896867460507147,\n",
       "  'Belize': 2.8133475130560717,\n",
       "  'Benin': 3.5966022519775005,\n",
       "  'Bermuda': 2.955701035081072,\n",
       "  'Bhutan': 3.469027774717143,\n",
       "  'Bolivia': 3.170830012479644,\n",
       "  'Bosnia and Herzegovina': 2.500036356500357,\n",
       "  'Botswana': 3.9888502893328583,\n",
       "  'Brazil': 3.692279555772143,\n",
       "  'Brunei': 2.5467134069242854,\n",
       "  'Bulgaria': 2.6608643386103568,\n",
       "  'Burkina Faso': 3.6097721727635723,\n",
       "  'Burundi': 3.970703203544285,\n",
       "  'Cambodia': 3.1593274376889293,\n",
       "  'Cameroon': 3.709406607334643,\n",
       "  'Canada': 4.029442655857857,\n",
       "  'Cape Verde': 4.031270365000357,\n",
       "  'Caribbean': 3.1956183231596436,\n",
       "  'Central African Republic': 4.233829629066071,\n",
       "  'Central Asia': 2.995998576101428,\n",
       "  'Central Europe': 2.514894643315,\n",
       "  'Central Europe, Eastern Europe, and Central Asia': 3.3586706010792855,\n",
       "  'Central Latin America': 2.700148093915,\n",
       "  'Central Sub-Saharan Africa': 4.038512680162857,\n",
       "  'Chad': 3.9296742695721423,\n",
       "  'Chile': 4.208619930373571,\n",
       "  'China': 3.4375192735,\n",
       "  'Colombia': 2.311194037402857,\n",
       "  'Comoros': 3.3302286038757143,\n",
       "  'Congo': 4.168569085751071,\n",
       "  'Costa Rica': 2.837705181149285,\n",
       "  \"Cote d'Ivoire\": 3.2825215827810723,\n",
       "  'Croatia': 2.936773848916429,\n",
       "  'Cuba': 3.664426230595357,\n",
       "  'Cyprus': 3.3154257800767857,\n",
       "  'Czech Republic': 2.8000962838271426,\n",
       "  'Democratic Republic of Congo': 3.9683976615982135,\n",
       "  'Denmark': 3.499774065603213,\n",
       "  'Djibouti': 3.577672029931072,\n",
       "  'Dominica': 2.5998189678707146,\n",
       "  'Dominican Republic': 3.0155583469378575,\n",
       "  'East Asia': 3.424452685636429,\n",
       "  'Eastern Europe': 3.935313363843931,\n",
       "  'Eastern Sub-Saharan Africa': 3.9055431524307136,\n",
       "  'Ecuador': 2.9302966554839287,\n",
       "  'Egypt': 3.177725208522857,\n",
       "  'El Salvador': 3.084600908450714,\n",
       "  'England': 4.169407301861429,\n",
       "  'Equatorial Guinea': 4.193281131509287,\n",
       "  'Eritrea': 3.8981838449710713,\n",
       "  'Estonia': 4.264454771378215,\n",
       "  'Ethiopia': 3.937355805732501,\n",
       "  'Fiji': 3.158189522971785,\n",
       "  'Finland': 5.183080118798215,\n",
       "  'France': 4.3773285891975,\n",
       "  'Gabon': 4.115219673727501,\n",
       "  'Gambia': 4.1800877156750005,\n",
       "  'Georgia': 2.7772175916610715,\n",
       "  'Germany': 3.904906155939643,\n",
       "  'Ghana': 3.372093336832143,\n",
       "  'Greece': 4.207495473004642,\n",
       "  'Greenland': 6.459108779363214,\n",
       "  'Grenada': 2.7799782441310716,\n",
       "  'Guam': 3.4622294812214283,\n",
       "  'Guatemala': 3.360103121129286,\n",
       "  'Guinea': 3.518675453006786,\n",
       "  'Guinea-Bissau': 3.6119941659957138,\n",
       "  'Guyana': 4.059060552981785,\n",
       "  'Haiti': 2.9618903265235716,\n",
       "  'High SDI': 3.8747890089660717,\n",
       "  'High-income': 4.048117887518215,\n",
       "  'High-income Asia Pacific': 3.0454255043960714,\n",
       "  'High-middle SDI': 3.6270108968335713,\n",
       "  'Honduras': 2.686380218831072,\n",
       "  'Hungary': 2.946017695389286,\n",
       "  'Iceland': 3.4622159655671427,\n",
       "  'India': 3.7762856335274995,\n",
       "  'Indonesia': 2.623058187867143,\n",
       "  'Iran': 4.874332581865715,\n",
       "  'Iraq': 3.7535631989035716,\n",
       "  'Ireland': 4.2955890419925,\n",
       "  'Israel': 4.1035960768282145,\n",
       "  'Italy': 3.4890298273375002,\n",
       "  'Jamaica': 2.5600966188882137,\n",
       "  'Japan': 3.1004090313628576,\n",
       "  'Jordan': 3.7007306943732146,\n",
       "  'Kazakhstan': 3.5197924238742857,\n",
       "  'Kenya': 3.6224875691271423,\n",
       "  'Kiribati': 3.2177893083275007,\n",
       "  'Kuwait': 3.556787304110358,\n",
       "  'Kyrgyzstan': 3.1357615445653564,\n",
       "  'Laos': 2.9031244611296434,\n",
       "  'Latin America and Caribbean': 3.126872259495,\n",
       "  'Latvia': 3.7166449912503574,\n",
       "  'Lebanon': 3.677471588261785,\n",
       "  'Lesotho': 5.42381080989857,\n",
       "  'Liberia': 3.652035378127857,\n",
       "  'Libya': 3.763219191094286,\n",
       "  'Lithuania': 4.281545679077857,\n",
       "  'Low SDI': 3.7248733269446435,\n",
       "  'Low-middle SDI': 3.782487039915715,\n",
       "  'Luxembourg': 3.8013412948782133,\n",
       "  'Macedonia': 2.377594811727143,\n",
       "  'Madagascar': 3.7249445128110708,\n",
       "  'Malawi': 3.4291790763575,\n",
       "  'Malaysia': 3.328805346685715,\n",
       "  'Maldives': 3.320688280245,\n",
       "  'Mali': 2.979703177895715,\n",
       "  'Malta': 3.3859701673085714,\n",
       "  'Marshall Islands': 3.1203282267192862,\n",
       "  'Mauritania': 3.071506556331786,\n",
       "  'Mauritius': 3.607825434738214,\n",
       "  'Mexico': 2.747504462198929,\n",
       "  'Micronesia (country)': 3.1553979336307143,\n",
       "  'Middle SDI': 3.2525237757332137,\n",
       "  'Moldova': 3.5464183269389293,\n",
       "  'Mongolia': 3.5103034380785716,\n",
       "  'Montenegro': 2.5766037145385705,\n",
       "  'Morocco': 5.610297671614285,\n",
       "  'Mozambique': 3.8394109971539288,\n",
       "  'Myanmar': 2.252113093181429,\n",
       "  'Namibia': 3.4519690434899997,\n",
       "  'Nepal': 3.641111177764285,\n",
       "  'Netherlands': 4.086445517137142,\n",
       "  'New Zealand': 4.086396943933572,\n",
       "  'Nicaragua': 2.8530964684475006,\n",
       "  'Niger': 3.4325567196182143,\n",
       "  'Nigeria': 4.047074461932143,\n",
       "  'North Africa and Middle East': 3.9633519394257144,\n",
       "  'North America': 4.674824541470714,\n",
       "  'North Korea': 3.170828584784643,\n",
       "  'Northern Ireland': 4.287124094949286,\n",
       "  'Northern Mariana Islands': 3.044708051834643,\n",
       "  'Norway': 3.748898385164643,\n",
       "  'Oceania': 3.1735775929839285,\n",
       "  'Oman': 3.4409142866596434,\n",
       "  'Pakistan': 3.4279229500503563,\n",
       "  'Palestine': 4.818329691336072,\n",
       "  'Panama': 2.66432947773,\n",
       "  'Papua New Guinea': 3.1828362055685715,\n",
       "  'Paraguay': 2.8731045218117863,\n",
       "  'Peru': 2.3175002298064284,\n",
       "  'Philippines': 2.782970210614643,\n",
       "  'Poland': 2.28437501852,\n",
       "  'Portugal': 4.699081419627143,\n",
       "  'Puerto Rico': 2.7702620864875,\n",
       "  'Qatar': 3.6177870090907143,\n",
       "  'Romania': 2.3516792586532147,\n",
       "  'Russia': 3.791145334255358,\n",
       "  'Rwanda': 4.069197928414285,\n",
       "  'Saint Lucia': 2.814604261228214,\n",
       "  'Saint Vincent and the Grenadines': 2.8019698478417863,\n",
       "  'Samoa': 3.101897255374286,\n",
       "  'Sao Tome and Principe': 3.1166737517364287,\n",
       "  'Saudi Arabia': 3.467797159268214,\n",
       "  'Scotland': 4.1809579115535715,\n",
       "  'Senegal': 3.3072046778210717,\n",
       "  'Serbia': 2.6766679461110714,\n",
       "  'Seychelles': 2.9358759724699994,\n",
       "  'Sierra Leone': 3.5348104807446434,\n",
       "  'Singapore': 3.678884211328571,\n",
       "  'Slovakia': 2.480926396174286,\n",
       "  'Slovenia': 3.1760164578235717,\n",
       "  'Solomon Islands': 3.170130724694999,\n",
       "  'Somalia': 3.772928797852501,\n",
       "  'South Africa': 3.7229541606107133,\n",
       "  'South Asia': 3.7816587786442852,\n",
       "  'South Korea': 2.9174535913132145,\n",
       "  'South Sudan': 3.6480725297789283,\n",
       "  'Southeast Asia': 2.796893421841072,\n",
       "  'Southeast Asia, East Asia, and Oceania': 3.266810368384285,\n",
       "  'Southern Latin America': 3.7878360361785712,\n",
       "  'Southern Sub-Saharan Africa': 3.6677214806360716,\n",
       "  'Spain': 3.5165007217167847,\n",
       "  'Sri Lanka': 3.609633908995714,\n",
       "  'Sub-Saharan Africa': 3.8256232138649993,\n",
       "  'Sudan': 3.783116017542857,\n",
       "  'Suriname': 3.8962791208328578,\n",
       "  'Swaziland': 3.924040203056072,\n",
       "  'Sweden': 4.578980033394643,\n",
       "  'Switzerland': 3.9554245427853565,\n",
       "  'Syria': 3.5686295560217864,\n",
       "  'Taiwan': 2.967115673775715,\n",
       "  'Tajikistan': 2.592138096268571,\n",
       "  'Tanzania': 3.7100646693571435,\n",
       "  'Thailand': 3.079806223202857,\n",
       "  'Timor': 3.2284843824153566,\n",
       "  'Togo': 3.6271456198053564,\n",
       "  'Tonga': 2.91761384202,\n",
       "  'Trinidad and Tobago': 3.3785591552907155,\n",
       "  'Tropical Latin America': 3.6713588640299997,\n",
       "  'Tunisia': 3.908149320993214,\n",
       "  'Turkey': 3.8062774049517856,\n",
       "  'Turkmenistan': 2.8725137339646425,\n",
       "  'Uganda': 5.227816602614642,\n",
       "  'Ukraine': 4.325317932572857,\n",
       "  'United Arab Emirates': 2.9660013667346434,\n",
       "  'United Kingdom': 4.172531377907143,\n",
       "  'United States': 4.744654912483214,\n",
       "  'United States Virgin Islands': 2.8792782412207143,\n",
       "  'Uruguay': 3.442514360361429,\n",
       "  'Uzbekistan': 2.9224813795624995,\n",
       "  'Vanuatu': 3.1459035295125006,\n",
       "  'Venezuela': 2.8022170450078576,\n",
       "  'Vietnam': 2.910582110596429,\n",
       "  'Wales': 4.140226844856072,\n",
       "  'Western Europe': 3.9648730720546426,\n",
       "  'Western Sub-Saharan Africa': 3.7453523306474996,\n",
       "  'World': 3.504354990345714,\n",
       "  'Yemen': 4.004946803603929,\n",
       "  'Zambia': 3.5539404841399995,\n",
       "  'Zimbabwe': 3.103040412327857}}"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dpc.to_dict()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Index(['Afghanistan', 'Albania', 'Algeria', 'American Samoa',\n",
       "       'Andean Latin America', 'Andorra', 'Angola', 'Antigua and Barbuda',\n",
       "       'Argentina', 'Armenia',\n",
       "       ...\n",
       "       'Vanuatu', 'Venezuela', 'Vietnam', 'Wales', 'Western Europe',\n",
       "       'Western Sub-Saharan Africa', 'World', 'Yemen', 'Zambia', 'Zimbabwe'],\n",
       "      dtype='object', name='Entity', length=231)"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dpc.index"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "_max_=dpc.precent.max()\n",
    "_min_=dpc.precent.min()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'precent': {'Afghanistan': 4.118621707411429,\n",
       "  'Albania': 2.1904422523696434,\n",
       "  'Algeria': 3.657742504147143,\n",
       "  'American Samoa': 2.9408500826910715,\n",
       "  'Andean Latin America': 2.6267730087235712,\n",
       "  'Andorra': 3.739450459474285,\n",
       "  'Angola': 4.183141154887143,\n",
       "  'Antigua and Barbuda': 2.5579151358317858,\n",
       "  'Argentina': 3.639181259856429,\n",
       "  'Armenia': 2.6770664284732146,\n",
       "  'Australasia': 4.679497340915715,\n",
       "  'Australia': 4.795486530958215,\n",
       "  'Austria': 3.425945658864643,\n",
       "  'Azerbaijan': 2.5554006524310724,\n",
       "  'Bahamas': 2.6311664568257145,\n",
       "  'Bahrain': 4.146957151344643,\n",
       "  'Bangladesh': 4.187622125011428,\n",
       "  'Barbados': 2.7294921233600005,\n",
       "  'Belarus': 4.106998954844286,\n",
       "  'Belgium': 3.8896867460507147,\n",
       "  'Belize': 2.8133475130560717,\n",
       "  'Benin': 3.5966022519775005,\n",
       "  'Bermuda': 2.955701035081072,\n",
       "  'Bhutan': 3.469027774717143,\n",
       "  'Bolivia': 3.170830012479644,\n",
       "  'Bosnia and Herzegovina': 2.500036356500357,\n",
       "  'Botswana': 3.9888502893328583,\n",
       "  'Brazil': 3.692279555772143,\n",
       "  'Brunei': 2.5467134069242854,\n",
       "  'Bulgaria': 2.6608643386103568,\n",
       "  'Burkina Faso': 3.6097721727635723,\n",
       "  'Burundi': 3.970703203544285,\n",
       "  'Cambodia': 3.1593274376889293,\n",
       "  'Cameroon': 3.709406607334643,\n",
       "  'Canada': 4.029442655857857,\n",
       "  'Cape Verde': 4.031270365000357,\n",
       "  'Caribbean': 3.1956183231596436,\n",
       "  'Central African Republic': 4.233829629066071,\n",
       "  'Central Asia': 2.995998576101428,\n",
       "  'Central Europe': 2.514894643315,\n",
       "  'Central Europe, Eastern Europe, and Central Asia': 3.3586706010792855,\n",
       "  'Central Latin America': 2.700148093915,\n",
       "  'Central Sub-Saharan Africa': 4.038512680162857,\n",
       "  'Chad': 3.9296742695721423,\n",
       "  'Chile': 4.208619930373571,\n",
       "  'China': 3.4375192735,\n",
       "  'Colombia': 2.311194037402857,\n",
       "  'Comoros': 3.3302286038757143,\n",
       "  'Congo': 4.168569085751071,\n",
       "  'Costa Rica': 2.837705181149285,\n",
       "  \"Cote d'Ivoire\": 3.2825215827810723,\n",
       "  'Croatia': 2.936773848916429,\n",
       "  'Cuba': 3.664426230595357,\n",
       "  'Cyprus': 3.3154257800767857,\n",
       "  'Czech Republic': 2.8000962838271426,\n",
       "  'Democratic Republic of Congo': 3.9683976615982135,\n",
       "  'Denmark': 3.499774065603213,\n",
       "  'Djibouti': 3.577672029931072,\n",
       "  'Dominica': 2.5998189678707146,\n",
       "  'Dominican Republic': 3.0155583469378575,\n",
       "  'East Asia': 3.424452685636429,\n",
       "  'Eastern Europe': 3.935313363843931,\n",
       "  'Eastern Sub-Saharan Africa': 3.9055431524307136,\n",
       "  'Ecuador': 2.9302966554839287,\n",
       "  'Egypt': 3.177725208522857,\n",
       "  'El Salvador': 3.084600908450714,\n",
       "  'England': 4.169407301861429,\n",
       "  'Equatorial Guinea': 4.193281131509287,\n",
       "  'Eritrea': 3.8981838449710713,\n",
       "  'Estonia': 4.264454771378215,\n",
       "  'Ethiopia': 3.937355805732501,\n",
       "  'Fiji': 3.158189522971785,\n",
       "  'Finland': 5.183080118798215,\n",
       "  'France': 4.3773285891975,\n",
       "  'Gabon': 4.115219673727501,\n",
       "  'Gambia': 4.1800877156750005,\n",
       "  'Georgia': 2.7772175916610715,\n",
       "  'Germany': 3.904906155939643,\n",
       "  'Ghana': 3.372093336832143,\n",
       "  'Greece': 4.207495473004642,\n",
       "  'Greenland': 6.459108779363214,\n",
       "  'Grenada': 2.7799782441310716,\n",
       "  'Guam': 3.4622294812214283,\n",
       "  'Guatemala': 3.360103121129286,\n",
       "  'Guinea': 3.518675453006786,\n",
       "  'Guinea-Bissau': 3.6119941659957138,\n",
       "  'Guyana': 4.059060552981785,\n",
       "  'Haiti': 2.9618903265235716,\n",
       "  'High SDI': 3.8747890089660717,\n",
       "  'High-income': 4.048117887518215,\n",
       "  'High-income Asia Pacific': 3.0454255043960714,\n",
       "  'High-middle SDI': 3.6270108968335713,\n",
       "  'Honduras': 2.686380218831072,\n",
       "  'Hungary': 2.946017695389286,\n",
       "  'Iceland': 3.4622159655671427,\n",
       "  'India': 3.7762856335274995,\n",
       "  'Indonesia': 2.623058187867143,\n",
       "  'Iran': 4.874332581865715,\n",
       "  'Iraq': 3.7535631989035716,\n",
       "  'Ireland': 4.2955890419925,\n",
       "  'Israel': 4.1035960768282145,\n",
       "  'Italy': 3.4890298273375002,\n",
       "  'Jamaica': 2.5600966188882137,\n",
       "  'Japan': 3.1004090313628576,\n",
       "  'Jordan': 3.7007306943732146,\n",
       "  'Kazakhstan': 3.5197924238742857,\n",
       "  'Kenya': 3.6224875691271423,\n",
       "  'Kiribati': 3.2177893083275007,\n",
       "  'Kuwait': 3.556787304110358,\n",
       "  'Kyrgyzstan': 3.1357615445653564,\n",
       "  'Laos': 2.9031244611296434,\n",
       "  'Latin America and Caribbean': 3.126872259495,\n",
       "  'Latvia': 3.7166449912503574,\n",
       "  'Lebanon': 3.677471588261785,\n",
       "  'Lesotho': 5.42381080989857,\n",
       "  'Liberia': 3.652035378127857,\n",
       "  'Libya': 3.763219191094286,\n",
       "  'Lithuania': 4.281545679077857,\n",
       "  'Low SDI': 3.7248733269446435,\n",
       "  'Low-middle SDI': 3.782487039915715,\n",
       "  'Luxembourg': 3.8013412948782133,\n",
       "  'Macedonia': 2.377594811727143,\n",
       "  'Madagascar': 3.7249445128110708,\n",
       "  'Malawi': 3.4291790763575,\n",
       "  'Malaysia': 3.328805346685715,\n",
       "  'Maldives': 3.320688280245,\n",
       "  'Mali': 2.979703177895715,\n",
       "  'Malta': 3.3859701673085714,\n",
       "  'Marshall Islands': 3.1203282267192862,\n",
       "  'Mauritania': 3.071506556331786,\n",
       "  'Mauritius': 3.607825434738214,\n",
       "  'Mexico': 2.747504462198929,\n",
       "  'Micronesia (country)': 3.1553979336307143,\n",
       "  'Middle SDI': 3.2525237757332137,\n",
       "  'Moldova': 3.5464183269389293,\n",
       "  'Mongolia': 3.5103034380785716,\n",
       "  'Montenegro': 2.5766037145385705,\n",
       "  'Morocco': 5.610297671614285,\n",
       "  'Mozambique': 3.8394109971539288,\n",
       "  'Myanmar': 2.252113093181429,\n",
       "  'Namibia': 3.4519690434899997,\n",
       "  'Nepal': 3.641111177764285,\n",
       "  'Netherlands': 4.086445517137142,\n",
       "  'New Zealand': 4.086396943933572,\n",
       "  'Nicaragua': 2.8530964684475006,\n",
       "  'Niger': 3.4325567196182143,\n",
       "  'Nigeria': 4.047074461932143,\n",
       "  'North Africa and Middle East': 3.9633519394257144,\n",
       "  'North America': 4.674824541470714,\n",
       "  'North Korea': 3.170828584784643,\n",
       "  'Northern Ireland': 4.287124094949286,\n",
       "  'Northern Mariana Islands': 3.044708051834643,\n",
       "  'Norway': 3.748898385164643,\n",
       "  'Oceania': 3.1735775929839285,\n",
       "  'Oman': 3.4409142866596434,\n",
       "  'Pakistan': 3.4279229500503563,\n",
       "  'Palestine': 4.818329691336072,\n",
       "  'Panama': 2.66432947773,\n",
       "  'Papua New Guinea': 3.1828362055685715,\n",
       "  'Paraguay': 2.8731045218117863,\n",
       "  'Peru': 2.3175002298064284,\n",
       "  'Philippines': 2.782970210614643,\n",
       "  'Poland': 2.28437501852,\n",
       "  'Portugal': 4.699081419627143,\n",
       "  'Puerto Rico': 2.7702620864875,\n",
       "  'Qatar': 3.6177870090907143,\n",
       "  'Romania': 2.3516792586532147,\n",
       "  'Russia': 3.791145334255358,\n",
       "  'Rwanda': 4.069197928414285,\n",
       "  'Saint Lucia': 2.814604261228214,\n",
       "  'Saint Vincent and the Grenadines': 2.8019698478417863,\n",
       "  'Samoa': 3.101897255374286,\n",
       "  'Sao Tome and Principe': 3.1166737517364287,\n",
       "  'Saudi Arabia': 3.467797159268214,\n",
       "  'Scotland': 4.1809579115535715,\n",
       "  'Senegal': 3.3072046778210717,\n",
       "  'Serbia': 2.6766679461110714,\n",
       "  'Seychelles': 2.9358759724699994,\n",
       "  'Sierra Leone': 3.5348104807446434,\n",
       "  'Singapore': 3.678884211328571,\n",
       "  'Slovakia': 2.480926396174286,\n",
       "  'Slovenia': 3.1760164578235717,\n",
       "  'Solomon Islands': 3.170130724694999,\n",
       "  'Somalia': 3.772928797852501,\n",
       "  'South Africa': 3.7229541606107133,\n",
       "  'South Asia': 3.7816587786442852,\n",
       "  'South Korea': 2.9174535913132145,\n",
       "  'South Sudan': 3.6480725297789283,\n",
       "  'Southeast Asia': 2.796893421841072,\n",
       "  'Southeast Asia, East Asia, and Oceania': 3.266810368384285,\n",
       "  'Southern Latin America': 3.7878360361785712,\n",
       "  'Southern Sub-Saharan Africa': 3.6677214806360716,\n",
       "  'Spain': 3.5165007217167847,\n",
       "  'Sri Lanka': 3.609633908995714,\n",
       "  'Sub-Saharan Africa': 3.8256232138649993,\n",
       "  'Sudan': 3.783116017542857,\n",
       "  'Suriname': 3.8962791208328578,\n",
       "  'Swaziland': 3.924040203056072,\n",
       "  'Sweden': 4.578980033394643,\n",
       "  'Switzerland': 3.9554245427853565,\n",
       "  'Syria': 3.5686295560217864,\n",
       "  'Taiwan': 2.967115673775715,\n",
       "  'Tajikistan': 2.592138096268571,\n",
       "  'Tanzania': 3.7100646693571435,\n",
       "  'Thailand': 3.079806223202857,\n",
       "  'Timor': 3.2284843824153566,\n",
       "  'Togo': 3.6271456198053564,\n",
       "  'Tonga': 2.91761384202,\n",
       "  'Trinidad and Tobago': 3.3785591552907155,\n",
       "  'Tropical Latin America': 3.6713588640299997,\n",
       "  'Tunisia': 3.908149320993214,\n",
       "  'Turkey': 3.8062774049517856,\n",
       "  'Turkmenistan': 2.8725137339646425,\n",
       "  'Uganda': 5.227816602614642,\n",
       "  'Ukraine': 4.325317932572857,\n",
       "  'United Arab Emirates': 2.9660013667346434,\n",
       "  'United Kingdom': 4.172531377907143,\n",
       "  'United States': 4.744654912483214,\n",
       "  'United States Virgin Islands': 2.8792782412207143,\n",
       "  'Uruguay': 3.442514360361429,\n",
       "  'Uzbekistan': 2.9224813795624995,\n",
       "  'Vanuatu': 3.1459035295125006,\n",
       "  'Venezuela': 2.8022170450078576,\n",
       "  'Vietnam': 2.910582110596429,\n",
       "  'Wales': 4.140226844856072,\n",
       "  'Western Europe': 3.9648730720546426,\n",
       "  'Western Sub-Saharan Africa': 3.7453523306474996,\n",
       "  'World': 3.504354990345714,\n",
       "  'Yemen': 4.004946803603929,\n",
       "  'Zambia': 3.5539404841399995,\n",
       "  'Zimbabwe': 3.103040412327857}}"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dpc.to_dict()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Index(['Afghanistan', 'Albania', 'Algeria', 'American Samoa',\n",
       "       'Andean Latin America', 'Andorra', 'Angola', 'Antigua and Barbuda',\n",
       "       'Argentina', 'Armenia',\n",
       "       ...\n",
       "       'Vanuatu', 'Venezuela', 'Vietnam', 'Wales', 'Western Europe',\n",
       "       'Western Sub-Saharan Africa', 'World', 'Yemen', 'Zambia', 'Zimbabwe'],\n",
       "      dtype='object', name='Entity', length=231)"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "dpc.index"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "metadata": {},
   "outputs": [],
   "source": [
    "country = dpc.index\n",
    "data_world = [(k, v) for k, v in dpc.precent.to_dict().items()]  \n",
    "worlddp = (\n",
    "            Map()\n",
    "            .add(\"世界各国人均抑郁症患病率地图\", data_world, maptype=\"world\" ) # # 数据, world_china_provinces\n",
    "            .set_global_opts(\n",
    "                title_opts=opts.TitleOpts(title='世界各国人均抑郁症患病率地图'),\n",
    "                visualmap_opts=opts.VisualMapOpts(\n",
    "                    max_=_max_,\n",
    "                    min_=_min_,\n",
    "                    is_piecewise=True)  # 定义图例为分段型，默认为连续的图例\n",
    "            )\n",
    "            .set_series_opts(label_opts=opts.LabelOpts(is_show=False))\n",
    "     \n",
    ")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('Afghanistan', 4.118621707411429),\n",
       " ('Albania', 2.1904422523696434),\n",
       " ('Algeria', 3.657742504147143),\n",
       " ('American Samoa', 2.9408500826910715),\n",
       " ('Andean Latin America', 2.6267730087235712),\n",
       " ('Andorra', 3.739450459474285),\n",
       " ('Angola', 4.183141154887143),\n",
       " ('Antigua and Barbuda', 2.5579151358317858),\n",
       " ('Argentina', 3.639181259856429),\n",
       " ('Armenia', 2.6770664284732146),\n",
       " ('Australasia', 4.679497340915715),\n",
       " ('Australia', 4.795486530958215),\n",
       " ('Austria', 3.425945658864643),\n",
       " ('Azerbaijan', 2.5554006524310724),\n",
       " ('Bahamas', 2.6311664568257145),\n",
       " ('Bahrain', 4.146957151344643),\n",
       " ('Bangladesh', 4.187622125011428),\n",
       " ('Barbados', 2.7294921233600005),\n",
       " ('Belarus', 4.106998954844286),\n",
       " ('Belgium', 3.8896867460507147),\n",
       " ('Belize', 2.8133475130560717),\n",
       " ('Benin', 3.5966022519775005),\n",
       " ('Bermuda', 2.955701035081072),\n",
       " ('Bhutan', 3.469027774717143),\n",
       " ('Bolivia', 3.170830012479644),\n",
       " ('Bosnia and Herzegovina', 2.500036356500357),\n",
       " ('Botswana', 3.9888502893328583),\n",
       " ('Brazil', 3.692279555772143),\n",
       " ('Brunei', 2.5467134069242854),\n",
       " ('Bulgaria', 2.6608643386103568),\n",
       " ('Burkina Faso', 3.6097721727635723),\n",
       " ('Burundi', 3.970703203544285),\n",
       " ('Cambodia', 3.1593274376889293),\n",
       " ('Cameroon', 3.709406607334643),\n",
       " ('Canada', 4.029442655857857),\n",
       " ('Cape Verde', 4.031270365000357),\n",
       " ('Caribbean', 3.1956183231596436),\n",
       " ('Central African Republic', 4.233829629066071),\n",
       " ('Central Asia', 2.995998576101428),\n",
       " ('Central Europe', 2.514894643315),\n",
       " ('Central Europe, Eastern Europe, and Central Asia', 3.3586706010792855),\n",
       " ('Central Latin America', 2.700148093915),\n",
       " ('Central Sub-Saharan Africa', 4.038512680162857),\n",
       " ('Chad', 3.9296742695721423),\n",
       " ('Chile', 4.208619930373571),\n",
       " ('China', 3.4375192735),\n",
       " ('Colombia', 2.311194037402857),\n",
       " ('Comoros', 3.3302286038757143),\n",
       " ('Congo', 4.168569085751071),\n",
       " ('Costa Rica', 2.837705181149285),\n",
       " (\"Cote d'Ivoire\", 3.2825215827810723),\n",
       " ('Croatia', 2.936773848916429),\n",
       " ('Cuba', 3.664426230595357),\n",
       " ('Cyprus', 3.3154257800767857),\n",
       " ('Czech Republic', 2.8000962838271426),\n",
       " ('Democratic Republic of Congo', 3.9683976615982135),\n",
       " ('Denmark', 3.499774065603213),\n",
       " ('Djibouti', 3.577672029931072),\n",
       " ('Dominica', 2.5998189678707146),\n",
       " ('Dominican Republic', 3.0155583469378575),\n",
       " ('East Asia', 3.424452685636429),\n",
       " ('Eastern Europe', 3.935313363843931),\n",
       " ('Eastern Sub-Saharan Africa', 3.9055431524307136),\n",
       " ('Ecuador', 2.9302966554839287),\n",
       " ('Egypt', 3.177725208522857),\n",
       " ('El Salvador', 3.084600908450714),\n",
       " ('England', 4.169407301861429),\n",
       " ('Equatorial Guinea', 4.193281131509287),\n",
       " ('Eritrea', 3.8981838449710713),\n",
       " ('Estonia', 4.264454771378215),\n",
       " ('Ethiopia', 3.937355805732501),\n",
       " ('Fiji', 3.158189522971785),\n",
       " ('Finland', 5.183080118798215),\n",
       " ('France', 4.3773285891975),\n",
       " ('Gabon', 4.115219673727501),\n",
       " ('Gambia', 4.1800877156750005),\n",
       " ('Georgia', 2.7772175916610715),\n",
       " ('Germany', 3.904906155939643),\n",
       " ('Ghana', 3.372093336832143),\n",
       " ('Greece', 4.207495473004642),\n",
       " ('Greenland', 6.459108779363214),\n",
       " ('Grenada', 2.7799782441310716),\n",
       " ('Guam', 3.4622294812214283),\n",
       " ('Guatemala', 3.360103121129286),\n",
       " ('Guinea', 3.518675453006786),\n",
       " ('Guinea-Bissau', 3.6119941659957138),\n",
       " ('Guyana', 4.059060552981785),\n",
       " ('Haiti', 2.9618903265235716),\n",
       " ('High SDI', 3.8747890089660717),\n",
       " ('High-income', 4.048117887518215),\n",
       " ('High-income Asia Pacific', 3.0454255043960714),\n",
       " ('High-middle SDI', 3.6270108968335713),\n",
       " ('Honduras', 2.686380218831072),\n",
       " ('Hungary', 2.946017695389286),\n",
       " ('Iceland', 3.4622159655671427),\n",
       " ('India', 3.7762856335274995),\n",
       " ('Indonesia', 2.623058187867143),\n",
       " ('Iran', 4.874332581865715),\n",
       " ('Iraq', 3.7535631989035716),\n",
       " ('Ireland', 4.2955890419925),\n",
       " ('Israel', 4.1035960768282145),\n",
       " ('Italy', 3.4890298273375002),\n",
       " ('Jamaica', 2.5600966188882137),\n",
       " ('Japan', 3.1004090313628576),\n",
       " ('Jordan', 3.7007306943732146),\n",
       " ('Kazakhstan', 3.5197924238742857),\n",
       " ('Kenya', 3.6224875691271423),\n",
       " ('Kiribati', 3.2177893083275007),\n",
       " ('Kuwait', 3.556787304110358),\n",
       " ('Kyrgyzstan', 3.1357615445653564),\n",
       " ('Laos', 2.9031244611296434),\n",
       " ('Latin America and Caribbean', 3.126872259495),\n",
       " ('Latvia', 3.7166449912503574),\n",
       " ('Lebanon', 3.677471588261785),\n",
       " ('Lesotho', 5.42381080989857),\n",
       " ('Liberia', 3.652035378127857),\n",
       " ('Libya', 3.763219191094286),\n",
       " ('Lithuania', 4.281545679077857),\n",
       " ('Low SDI', 3.7248733269446435),\n",
       " ('Low-middle SDI', 3.782487039915715),\n",
       " ('Luxembourg', 3.8013412948782133),\n",
       " ('Macedonia', 2.377594811727143),\n",
       " ('Madagascar', 3.7249445128110708),\n",
       " ('Malawi', 3.4291790763575),\n",
       " ('Malaysia', 3.328805346685715),\n",
       " ('Maldives', 3.320688280245),\n",
       " ('Mali', 2.979703177895715),\n",
       " ('Malta', 3.3859701673085714),\n",
       " ('Marshall Islands', 3.1203282267192862),\n",
       " ('Mauritania', 3.071506556331786),\n",
       " ('Mauritius', 3.607825434738214),\n",
       " ('Mexico', 2.747504462198929),\n",
       " ('Micronesia (country)', 3.1553979336307143),\n",
       " ('Middle SDI', 3.2525237757332137),\n",
       " ('Moldova', 3.5464183269389293),\n",
       " ('Mongolia', 3.5103034380785716),\n",
       " ('Montenegro', 2.5766037145385705),\n",
       " ('Morocco', 5.610297671614285),\n",
       " ('Mozambique', 3.8394109971539288),\n",
       " ('Myanmar', 2.252113093181429),\n",
       " ('Namibia', 3.4519690434899997),\n",
       " ('Nepal', 3.641111177764285),\n",
       " ('Netherlands', 4.086445517137142),\n",
       " ('New Zealand', 4.086396943933572),\n",
       " ('Nicaragua', 2.8530964684475006),\n",
       " ('Niger', 3.4325567196182143),\n",
       " ('Nigeria', 4.047074461932143),\n",
       " ('North Africa and Middle East', 3.9633519394257144),\n",
       " ('North America', 4.674824541470714),\n",
       " ('North Korea', 3.170828584784643),\n",
       " ('Northern Ireland', 4.287124094949286),\n",
       " ('Northern Mariana Islands', 3.044708051834643),\n",
       " ('Norway', 3.748898385164643),\n",
       " ('Oceania', 3.1735775929839285),\n",
       " ('Oman', 3.4409142866596434),\n",
       " ('Pakistan', 3.4279229500503563),\n",
       " ('Palestine', 4.818329691336072),\n",
       " ('Panama', 2.66432947773),\n",
       " ('Papua New Guinea', 3.1828362055685715),\n",
       " ('Paraguay', 2.8731045218117863),\n",
       " ('Peru', 2.3175002298064284),\n",
       " ('Philippines', 2.782970210614643),\n",
       " ('Poland', 2.28437501852),\n",
       " ('Portugal', 4.699081419627143),\n",
       " ('Puerto Rico', 2.7702620864875),\n",
       " ('Qatar', 3.6177870090907143),\n",
       " ('Romania', 2.3516792586532147),\n",
       " ('Russia', 3.791145334255358),\n",
       " ('Rwanda', 4.069197928414285),\n",
       " ('Saint Lucia', 2.814604261228214),\n",
       " ('Saint Vincent and the Grenadines', 2.8019698478417863),\n",
       " ('Samoa', 3.101897255374286),\n",
       " ('Sao Tome and Principe', 3.1166737517364287),\n",
       " ('Saudi Arabia', 3.467797159268214),\n",
       " ('Scotland', 4.1809579115535715),\n",
       " ('Senegal', 3.3072046778210717),\n",
       " ('Serbia', 2.6766679461110714),\n",
       " ('Seychelles', 2.9358759724699994),\n",
       " ('Sierra Leone', 3.5348104807446434),\n",
       " ('Singapore', 3.678884211328571),\n",
       " ('Slovakia', 2.480926396174286),\n",
       " ('Slovenia', 3.1760164578235717),\n",
       " ('Solomon Islands', 3.170130724694999),\n",
       " ('Somalia', 3.772928797852501),\n",
       " ('South Africa', 3.7229541606107133),\n",
       " ('South Asia', 3.7816587786442852),\n",
       " ('South Korea', 2.9174535913132145),\n",
       " ('South Sudan', 3.6480725297789283),\n",
       " ('Southeast Asia', 2.796893421841072),\n",
       " ('Southeast Asia, East Asia, and Oceania', 3.266810368384285),\n",
       " ('Southern Latin America', 3.7878360361785712),\n",
       " ('Southern Sub-Saharan Africa', 3.6677214806360716),\n",
       " ('Spain', 3.5165007217167847),\n",
       " ('Sri Lanka', 3.609633908995714),\n",
       " ('Sub-Saharan Africa', 3.8256232138649993),\n",
       " ('Sudan', 3.783116017542857),\n",
       " ('Suriname', 3.8962791208328578),\n",
       " ('Swaziland', 3.924040203056072),\n",
       " ('Sweden', 4.578980033394643),\n",
       " ('Switzerland', 3.9554245427853565),\n",
       " ('Syria', 3.5686295560217864),\n",
       " ('Taiwan', 2.967115673775715),\n",
       " ('Tajikistan', 2.592138096268571),\n",
       " ('Tanzania', 3.7100646693571435),\n",
       " ('Thailand', 3.079806223202857),\n",
       " ('Timor', 3.2284843824153566),\n",
       " ('Togo', 3.6271456198053564),\n",
       " ('Tonga', 2.91761384202),\n",
       " ('Trinidad and Tobago', 3.3785591552907155),\n",
       " ('Tropical Latin America', 3.6713588640299997),\n",
       " ('Tunisia', 3.908149320993214),\n",
       " ('Turkey', 3.8062774049517856),\n",
       " ('Turkmenistan', 2.8725137339646425),\n",
       " ('Uganda', 5.227816602614642),\n",
       " ('Ukraine', 4.325317932572857),\n",
       " ('United Arab Emirates', 2.9660013667346434),\n",
       " ('United Kingdom', 4.172531377907143),\n",
       " ('United States', 4.744654912483214),\n",
       " ('United States Virgin Islands', 2.8792782412207143),\n",
       " ('Uruguay', 3.442514360361429),\n",
       " ('Uzbekistan', 2.9224813795624995),\n",
       " ('Vanuatu', 3.1459035295125006),\n",
       " ('Venezuela', 2.8022170450078576),\n",
       " ('Vietnam', 2.910582110596429),\n",
       " ('Wales', 4.140226844856072),\n",
       " ('Western Europe', 3.9648730720546426),\n",
       " ('Western Sub-Saharan Africa', 3.7453523306474996),\n",
       " ('World', 3.504354990345714),\n",
       " ('Yemen', 4.004946803603929),\n",
       " ('Zambia', 3.5539404841399995),\n",
       " ('Zimbabwe', 3.103040412327857)]"
      ]
     },
     "execution_count": 74,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_world"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 75,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Index(['Afghanistan', 'Albania', 'Algeria', 'American Samoa',\n",
       "       'Andean Latin America', 'Andorra', 'Angola', 'Antigua and Barbuda',\n",
       "       'Argentina', 'Armenia',\n",
       "       ...\n",
       "       'Vanuatu', 'Venezuela', 'Vietnam', 'Wales', 'Western Europe',\n",
       "       'Western Sub-Saharan Africa', 'World', 'Yemen', 'Zambia', 'Zimbabwe'],\n",
       "      dtype='object', name='Entity', length=231)"
      ]
     },
     "execution_count": 75,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "country"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 76,
   "metadata": {},
   "outputs": [],
   "source": [
    "dpc.to_excel('D:/ + 2data.xlsx')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 世界各国15岁以上受过高等教育的人口百分比地图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 77,
   "metadata": {},
   "outputs": [],
   "source": [
    "ed = pd.read_csv('share-of-the-population-with-completed-tertiary-education.csv',encoding = 'utf8')\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 78,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Entity</th>\n",
       "      <th>jy</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>1.08</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>1.48</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>1.96</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>2.49</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>2.91</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1291</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>1.83</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1292</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>1.32</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1293</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>0.53</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1294</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>0.44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1295</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>0.38</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1296 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "           Entity    jy\n",
       "0     Afghanistan  1.08\n",
       "1     Afghanistan  1.48\n",
       "2     Afghanistan  1.96\n",
       "3     Afghanistan  2.49\n",
       "4     Afghanistan  2.91\n",
       "...           ...   ...\n",
       "1291     Zimbabwe  1.83\n",
       "1292     Zimbabwe  1.32\n",
       "1293     Zimbabwe  0.53\n",
       "1294     Zimbabwe  0.44\n",
       "1295     Zimbabwe  0.38\n",
       "\n",
       "[1296 rows x 2 columns]"
      ]
     },
     "execution_count": 78,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ed1=ed.drop(columns=[\"Code\"])\n",
    "ed2=ed1.drop(columns=[\"Year\"])\n",
    "ed2\n",
    "ed3=ed2.rename(columns={'Barro-Lee: Percentage of population age 15+ with tertiary schooling. Completed Tertiary (%)':'jy'})\n",
    "#Barro Lee：15岁以上受过高等教育的人口百分比。完成高等教育（%）\n",
    "ed3"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 79,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>jy</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Entity</th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Afghanistan</th>\n",
       "      <td>2.662222</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Albania</th>\n",
       "      <td>2.371111</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Algeria</th>\n",
       "      <td>2.334444</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Argentina</th>\n",
       "      <td>3.747778</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Armenia</th>\n",
       "      <td>9.795556</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Venezuela</th>\n",
       "      <td>2.366667</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Vietnam</th>\n",
       "      <td>1.481111</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Yemen</th>\n",
       "      <td>0.568889</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Zambia</th>\n",
       "      <td>0.388889</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Zimbabwe</th>\n",
       "      <td>1.165556</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>144 rows × 1 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                   jy\n",
       "Entity               \n",
       "Afghanistan  2.662222\n",
       "Albania      2.371111\n",
       "Algeria      2.334444\n",
       "Argentina    3.747778\n",
       "Armenia      9.795556\n",
       "...               ...\n",
       "Venezuela    2.366667\n",
       "Vietnam      1.481111\n",
       "Yemen        0.568889\n",
       "Zambia       0.388889\n",
       "Zimbabwe     1.165556\n",
       "\n",
       "[144 rows x 1 columns]"
      ]
     },
     "execution_count": 79,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ed4 =  ed3.groupby(\"Entity\").mean()\n",
    "ed4"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 80,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'jy': {'Afghanistan': 2.662222222222222,\n",
       "  'Albania': 2.371111111111111,\n",
       "  'Algeria': 2.3344444444444443,\n",
       "  'Argentina': 3.7477777777777783,\n",
       "  'Armenia': 9.795555555555556,\n",
       "  'Australia': 13.965555555555556,\n",
       "  'Austria': 4.441111111111111,\n",
       "  'Bahrain': 6.391111111111112,\n",
       "  'Bangladesh': 1.3566666666666665,\n",
       "  'Barbados': 1.6055555555555554,\n",
       "  'Belgium': 12.078888888888887,\n",
       "  'Belize': 2.3033333333333332,\n",
       "  'Benin': 0.7244444444444444,\n",
       "  'Bolivia': 4.412222222222222,\n",
       "  'Botswana': 1.1966666666666665,\n",
       "  'Brazil': 3.2066666666666666,\n",
       "  'Brunei': 4.003333333333333,\n",
       "  'Bulgaria': 8.761111111111111,\n",
       "  'Burundi': 0.2544444444444445,\n",
       "  'Cambodia': 0.35888888888888887,\n",
       "  'Cameroon': 0.6022222222222222,\n",
       "  'Canada': 13.773333333333333,\n",
       "  'Central African Republic': 0.5977777777777779,\n",
       "  'Chile': 5.327777777777778,\n",
       "  'China': 1.4944444444444445,\n",
       "  'Colombia': 7.065555555555556,\n",
       "  'Congo': 0.8855555555555554,\n",
       "  'Costa Rica': 8.838888888888889,\n",
       "  \"Cote d'Ivoire\": 1.318888888888889,\n",
       "  'Croatia': 4.998888888888889,\n",
       "  'Cuba': 5.370000000000001,\n",
       "  'Cyprus': 10.797777777777778,\n",
       "  'Czech Republic': 4.583333333333333,\n",
       "  'Democratic Republic of Congo': 0.4044444444444444,\n",
       "  'Denmark': 10.005555555555555,\n",
       "  'Dominican Republic': 1.731111111111111,\n",
       "  'Ecuador': 4.546666666666667,\n",
       "  'Egypt': 2.9655555555555555,\n",
       "  'El Salvador': 4.231111111111111,\n",
       "  'Estonia': 10.262222222222222,\n",
       "  'Fiji': 3.8133333333333335,\n",
       "  'Finland': 7.736666666666666,\n",
       "  'France': 6.078888888888889,\n",
       "  'Gabon': 3.908888888888889,\n",
       "  'Gambia': 0.6233333333333334,\n",
       "  'Germany': 6.963333333333334,\n",
       "  'Ghana': 1.0522222222222222,\n",
       "  'Greece': 11.30111111111111,\n",
       "  'Guatemala': 1.1755555555555557,\n",
       "  'Guyana': 0.4588888888888889,\n",
       "  'Haiti': 0.46111111111111114,\n",
       "  'Honduras': 1.5522222222222222,\n",
       "  'Hong Kong': 7.987777777777778,\n",
       "  'Hungary': 8.47,\n",
       "  'Iceland': 8.303333333333333,\n",
       "  'India': 2.5955555555555554,\n",
       "  'Indonesia': 1.2455555555555557,\n",
       "  'Iran': 5.5344444444444445,\n",
       "  'Iraq': 4.082222222222222,\n",
       "  'Ireland': 12.257777777777777,\n",
       "  'Israel': 14.217777777777776,\n",
       "  'Italy': 3.6755555555555555,\n",
       "  'Jamaica': 3.6133333333333337,\n",
       "  'Japan': 11.634444444444442,\n",
       "  'Jordan': 3.314444444444445,\n",
       "  'Kazakhstan': 7.598888888888889,\n",
       "  'Kenya': 1.528888888888889,\n",
       "  'Kuwait': 4.518888888888889,\n",
       "  'Kyrgyzstan': 6.441111111111112,\n",
       "  'Laos': 1.7311111111111108,\n",
       "  'Latvia': 7.637777777777777,\n",
       "  'Lesotho': 0.39222222222222225,\n",
       "  'Liberia': 1.4877777777777776,\n",
       "  'Libya': 3.7255555555555557,\n",
       "  'Lithuania': 8.038888888888888,\n",
       "  'Luxembourg': 8.423333333333334,\n",
       "  'Macao': 4.21,\n",
       "  'Malawi': 0.18666666666666665,\n",
       "  'Malaysia': 2.53,\n",
       "  'Maldives': 0.20111111111111113,\n",
       "  'Mali': 0.3544444444444445,\n",
       "  'Malta': 5.725555555555555,\n",
       "  'Mauritania': 0.7055555555555555,\n",
       "  'Mauritius': 0.9533333333333331,\n",
       "  'Mexico': 4.9944444444444445,\n",
       "  'Moldova': 5.814444444444444,\n",
       "  'Mongolia': 10.128888888888888,\n",
       "  'Morocco': 2.714444444444444,\n",
       "  'Mozambique': 0.12555555555555556,\n",
       "  'Myanmar': 2.06,\n",
       "  'Namibia': 1.0622222222222222,\n",
       "  'Nepal': 1.3444444444444443,\n",
       "  'Netherlands': 9.363333333333333,\n",
       "  'New Zealand': 14.352222222222224,\n",
       "  'Nicaragua': 8.05888888888889,\n",
       "  'Niger': 0.29666666666666663,\n",
       "  'Norway': 7.345555555555555,\n",
       "  'Pakistan': 2.8966666666666665,\n",
       "  'Panama': 7.611111111111111,\n",
       "  'Papua New Guinea': 0.3933333333333333,\n",
       "  'Paraguay': 2.553333333333333,\n",
       "  'Peru': 12.362222222222222,\n",
       "  'Philippines': 6.7411111111111115,\n",
       "  'Poland': 5.324444444444444,\n",
       "  'Portugal': 2.498888888888889,\n",
       "  'Qatar': 7.973333333333333,\n",
       "  'Romania': 3.914444444444445,\n",
       "  'Russia': 12.719999999999999,\n",
       "  'Rwanda': 0.19,\n",
       "  'Saudi Arabia': 5.088888888888889,\n",
       "  'Senegal': 0.6133333333333334,\n",
       "  'Serbia': 5.167777777777777,\n",
       "  'Sierra Leone': 0.4588888888888889,\n",
       "  'Singapore': 8.575555555555557,\n",
       "  'Slovakia': 4.451111111111111,\n",
       "  'Slovenia': 6.378888888888889,\n",
       "  'South Africa': 0.3355555555555555,\n",
       "  'South Korea': 12.453333333333331,\n",
       "  'Spain': 7.351111111111111,\n",
       "  'Sri Lanka': 4.035555555555556,\n",
       "  'Sudan': 0.7077777777777778,\n",
       "  'Swaziland': 1.2277777777777779,\n",
       "  'Sweden': 10.235555555555557,\n",
       "  'Switzerland': 9.32111111111111,\n",
       "  'Syria': 1.828888888888889,\n",
       "  'Tajikistan': 4.287777777777778,\n",
       "  'Tanzania': 0.29666666666666663,\n",
       "  'Thailand': 4.598888888888889,\n",
       "  'Togo': 0.8288888888888889,\n",
       "  'Tonga': 2.5833333333333335,\n",
       "  'Trinidad and Tobago': 2.661111111111111,\n",
       "  'Tunisia': 2.752222222222222,\n",
       "  'Turkey': 3.8644444444444446,\n",
       "  'Uganda': 0.7233333333333333,\n",
       "  'Ukraine': 13.254444444444443,\n",
       "  'United Arab Emirates': 6.148888888888888,\n",
       "  'United Kingdom': 9.297777777777776,\n",
       "  'United States': 19.241111111111113,\n",
       "  'Uruguay': 3.4499999999999997,\n",
       "  'Venezuela': 2.3666666666666667,\n",
       "  'Vietnam': 1.4811111111111108,\n",
       "  'Yemen': 0.5688888888888889,\n",
       "  'Zambia': 0.3888888888888889,\n",
       "  'Zimbabwe': 1.1655555555555557}}"
      ]
     },
     "execution_count": 80,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ed4.to_dict()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 81,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Index(['Afghanistan', 'Albania', 'Algeria', 'Argentina', 'Armenia',\n",
       "       'Australia', 'Austria', 'Bahrain', 'Bangladesh', 'Barbados',\n",
       "       ...\n",
       "       'Ukraine', 'United Arab Emirates', 'United Kingdom', 'United States',\n",
       "       'Uruguay', 'Venezuela', 'Vietnam', 'Yemen', 'Zambia', 'Zimbabwe'],\n",
       "      dtype='object', name='Entity', length=144)"
      ]
     },
     "execution_count": 81,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ed4.index"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 82,
   "metadata": {},
   "outputs": [],
   "source": [
    "_max1_=ed4.jy.max()\n",
    "_min1_=ed4.jy.min()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 83,
   "metadata": {},
   "outputs": [],
   "source": [
    "country = ed4.index\n",
    "data_world1 = [(k, v) for k, v in ed4.jy.to_dict().items()]  \n",
    "worldjy = (\n",
    "            Map()\n",
    "            .add(\"世界各国15岁以上受过高等教育的人口百分比\", data_world1, maptype=\"world\" ) # # 数据, world_china_provinces\n",
    "            .set_global_opts(\n",
    "                title_opts=opts.TitleOpts(title='世界各国15岁以上受过高等教育的人口百分比'),\n",
    "                visualmap_opts=opts.VisualMapOpts(\n",
    "                    max_=_max1_,\n",
    "                    min_=_min1_,\n",
    "                    is_piecewise=True)  # 定义图例为分段型，默认为连续的图例\n",
    "            )\n",
    "            .set_series_opts(label_opts=opts.LabelOpts(is_show=False))\n",
    "       \n",
    ")\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 世界人均国内生产总值地图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 84,
   "metadata": {},
   "outputs": [],
   "source": [
    "gdp1 = pd.read_csv('gdp-per-capita-growth.csv',encoding = 'utf8')\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 85,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Entity</th>\n",
       "      <th>GDP</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>3.343150</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>-3.361111</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>6.954474</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>2.200613</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>10.649184</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11309</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>3.120643</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11310</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>-0.239734</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11311</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>-0.667923</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11312</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>-1.707498</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11313</th>\n",
       "      <td>Zimbabwe</td>\n",
       "      <td>1.071853</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>11314 rows × 2 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            Entity        GDP\n",
       "0      Afghanistan   3.343150\n",
       "1      Afghanistan  -3.361111\n",
       "2      Afghanistan   6.954474\n",
       "3      Afghanistan   2.200613\n",
       "4      Afghanistan  10.649184\n",
       "...            ...        ...\n",
       "11309     Zimbabwe   3.120643\n",
       "11310     Zimbabwe  -0.239734\n",
       "11311     Zimbabwe  -0.667923\n",
       "11312     Zimbabwe  -1.707498\n",
       "11313     Zimbabwe   1.071853\n",
       "\n",
       "[11314 rows x 2 columns]"
      ]
     },
     "execution_count": 85,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "gdp2=gdp1.drop(columns=[\"Code\"])\n",
    "gdp3=gdp2.drop(columns=[\"Year\"])\n",
    "gdp4=gdp3.rename(columns={'GDP per capita growth (annual %) (%)':'GDP'})\n",
    "#Barro Lee：15岁以上受过高等教育的人口百分比。完成高等教育（%）\n",
    "gdp4"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 86,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>GDP</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Entity</th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>Afghanistan</th>\n",
       "      <td>3.727558</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Albania</th>\n",
       "      <td>2.612502</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Algeria</th>\n",
       "      <td>1.433050</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>American Samoa</th>\n",
       "      <td>-0.680911</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Andorra</th>\n",
       "      <td>0.147182</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Vietnam</th>\n",
       "      <td>4.928884</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>World</th>\n",
       "      <td>1.881441</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Yemen</th>\n",
       "      <td>-2.328233</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Zambia</th>\n",
       "      <td>0.256759</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>Zimbabwe</th>\n",
       "      <td>0.300346</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>255 rows × 1 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                     GDP\n",
       "Entity                  \n",
       "Afghanistan     3.727558\n",
       "Albania         2.612502\n",
       "Algeria         1.433050\n",
       "American Samoa -0.680911\n",
       "Andorra         0.147182\n",
       "...                  ...\n",
       "Vietnam         4.928884\n",
       "World           1.881441\n",
       "Yemen          -2.328233\n",
       "Zambia          0.256759\n",
       "Zimbabwe        0.300346\n",
       "\n",
       "[255 rows x 1 columns]"
      ]
     },
     "execution_count": 86,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "gdp=  gdp4.groupby(\"Entity\").mean()\n",
    "gdp"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 87,
   "metadata": {},
   "outputs": [],
   "source": [
    "_max2_=gdp.GDP.max()\n",
    "_min2_=gdp.GDP.min()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 88,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Index(['Afghanistan', 'Albania', 'Algeria', 'American Samoa', 'Andorra',\n",
       "       'Angola', 'Antigua and Barbuda', 'Arab World', 'Argentina', 'Armenia',\n",
       "       ...\n",
       "       'Upper middle income', 'Uruguay', 'Uzbekistan', 'Vanuatu', 'Venezuela',\n",
       "       'Vietnam', 'World', 'Yemen', 'Zambia', 'Zimbabwe'],\n",
       "      dtype='object', name='Entity', length=255)"
      ]
     },
     "execution_count": 88,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "gdp.index"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 89,
   "metadata": {},
   "outputs": [],
   "source": [
    "country = gdp.index\n",
    "data_world2 = [(k, v) for k, v in gdp.GDP.to_dict().items()]  \n",
    "worldgdp = (\n",
    "            Map()\n",
    "            .add(\"世界各国人均国内生产总值-增长\", data_world2, maptype=\"world\" ) # # 数据, world_china_provinces\n",
    "            .set_global_opts(\n",
    "                title_opts=opts.TitleOpts(title='世界各国人均国内生产总值-增长'),\n",
    "                visualmap_opts=opts.VisualMapOpts(\n",
    "                    max_=_max2_,\n",
    "                    min_=_min2_,\n",
    "                    is_piecewise=True)  # 定义图例为分段型，默认为连续的图例\n",
    "            )\n",
    "            .set_series_opts(label_opts=opts.LabelOpts(is_show=False))\n",
    "            \n",
    ")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 90,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min', 'world':'https://assets.pyecharts.org/assets/maps/world'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "    <style>\n",
       "        .tab {\n",
       "            overflow: hidden;\n",
       "            border: 1px solid #ccc;\n",
       "            background-color: #f1f1f1;\n",
       "        }\n",
       "\n",
       "        .tab button {\n",
       "            background-color: inherit;\n",
       "            float: left;\n",
       "            border: none;\n",
       "            outline: none;\n",
       "            cursor: pointer;\n",
       "            padding: 12px 16px;\n",
       "            transition: 0.3s;\n",
       "        }\n",
       "\n",
       "        .tab button:hover {\n",
       "            background-color: #ddd;\n",
       "        }\n",
       "\n",
       "        .tab button.active {\n",
       "            background-color: #ccc;\n",
       "        }\n",
       "\n",
       "        .chart-container {\n",
       "            display: none;\n",
       "            padding: 6px 12px;\n",
       "            border-top: none;\n",
       "        }\n",
       "    </style>\n",
       "<div class=\"tab\">\n",
       "            <button class=\"tablinks\" onclick=\"showChart(event, '53912bfe771d424a91941d4d80522f43')\">世界各国人均抑郁症患病率地图</button>\n",
       "            <button class=\"tablinks\" onclick=\"showChart(event, '25548cd1e1e64cadac369984020f8758')\">世界各国15岁以上受过高等教育的人口百分比</button>\n",
       "            <button class=\"tablinks\" onclick=\"showChart(event, '18bab14ef5fd438289d855c609385818')\">世界各国人均国内生产总值-增长</button>\n",
       "    </div>\n",
       "\n",
       "        <div id=\"53912bfe771d424a91941d4d80522f43\" class=\"chart-container\" style=\"width:900px; height:500px;\"></div>\n",
       "        <div id=\"25548cd1e1e64cadac369984020f8758\" class=\"chart-container\" style=\"width:900px; height:500px;\"></div>\n",
       "        <div id=\"18bab14ef5fd438289d855c609385818\" class=\"chart-container\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts', 'world'], function(echarts) {\n",
       "                var chart_53912bfe771d424a91941d4d80522f43 = echarts.init(\n",
       "                    document.getElementById('53912bfe771d424a91941d4d80522f43'), 'white', {renderer: 'canvas'});\n",
       "                var option_53912bfe771d424a91941d4d80522f43 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"map\",\n",
       "            \"name\": \"\\u4e16\\u754c\\u5404\\u56fd\\u4eba\\u5747\\u6291\\u90c1\\u75c7\\u60a3\\u75c5\\u7387\\u5730\\u56fe\",\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"mapType\": \"world\",\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Afghanistan\",\n",
       "                    \"value\": 4.118621707411429\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Albania\",\n",
       "                    \"value\": 2.1904422523696434\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Algeria\",\n",
       "                    \"value\": 3.657742504147143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"American Samoa\",\n",
       "                    \"value\": 2.9408500826910715\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Andean Latin America\",\n",
       "                    \"value\": 2.6267730087235712\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Andorra\",\n",
       "                    \"value\": 3.739450459474285\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Angola\",\n",
       "                    \"value\": 4.183141154887143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Antigua and Barbuda\",\n",
       "                    \"value\": 2.5579151358317858\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Argentina\",\n",
       "                    \"value\": 3.639181259856429\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Armenia\",\n",
       "                    \"value\": 2.6770664284732146\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Australasia\",\n",
       "                    \"value\": 4.679497340915715\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Australia\",\n",
       "                    \"value\": 4.795486530958215\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Austria\",\n",
       "                    \"value\": 3.425945658864643\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Azerbaijan\",\n",
       "                    \"value\": 2.5554006524310724\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahamas\",\n",
       "                    \"value\": 2.6311664568257145\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahrain\",\n",
       "                    \"value\": 4.146957151344643\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bangladesh\",\n",
       "                    \"value\": 4.187622125011428\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Barbados\",\n",
       "                    \"value\": 2.7294921233600005\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belarus\",\n",
       "                    \"value\": 4.106998954844286\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belgium\",\n",
       "                    \"value\": 3.8896867460507147\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belize\",\n",
       "                    \"value\": 2.8133475130560717\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Benin\",\n",
       "                    \"value\": 3.5966022519775005\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bermuda\",\n",
       "                    \"value\": 2.955701035081072\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bhutan\",\n",
       "                    \"value\": 3.469027774717143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bolivia\",\n",
       "                    \"value\": 3.170830012479644\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bosnia and Herzegovina\",\n",
       "                    \"value\": 2.500036356500357\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Botswana\",\n",
       "                    \"value\": 3.9888502893328583\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brazil\",\n",
       "                    \"value\": 3.692279555772143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brunei\",\n",
       "                    \"value\": 2.5467134069242854\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bulgaria\",\n",
       "                    \"value\": 2.6608643386103568\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burkina Faso\",\n",
       "                    \"value\": 3.6097721727635723\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burundi\",\n",
       "                    \"value\": 3.970703203544285\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cambodia\",\n",
       "                    \"value\": 3.1593274376889293\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cameroon\",\n",
       "                    \"value\": 3.709406607334643\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Canada\",\n",
       "                    \"value\": 4.029442655857857\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cape Verde\",\n",
       "                    \"value\": 4.031270365000357\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Caribbean\",\n",
       "                    \"value\": 3.1956183231596436\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central African Republic\",\n",
       "                    \"value\": 4.233829629066071\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central Asia\",\n",
       "                    \"value\": 2.995998576101428\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central Europe\",\n",
       "                    \"value\": 2.514894643315\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central Europe, Eastern Europe, and Central Asia\",\n",
       "                    \"value\": 3.3586706010792855\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central Latin America\",\n",
       "                    \"value\": 2.700148093915\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central Sub-Saharan Africa\",\n",
       "                    \"value\": 4.038512680162857\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chad\",\n",
       "                    \"value\": 3.9296742695721423\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chile\",\n",
       "                    \"value\": 4.208619930373571\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"China\",\n",
       "                    \"value\": 3.4375192735\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Colombia\",\n",
       "                    \"value\": 2.311194037402857\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Comoros\",\n",
       "                    \"value\": 3.3302286038757143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Congo\",\n",
       "                    \"value\": 4.168569085751071\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Costa Rica\",\n",
       "                    \"value\": 2.837705181149285\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cote d'Ivoire\",\n",
       "                    \"value\": 3.2825215827810723\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Croatia\",\n",
       "                    \"value\": 2.936773848916429\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cuba\",\n",
       "                    \"value\": 3.664426230595357\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cyprus\",\n",
       "                    \"value\": 3.3154257800767857\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Czech Republic\",\n",
       "                    \"value\": 2.8000962838271426\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Democratic Republic of Congo\",\n",
       "                    \"value\": 3.9683976615982135\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Denmark\",\n",
       "                    \"value\": 3.499774065603213\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Djibouti\",\n",
       "                    \"value\": 3.577672029931072\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dominica\",\n",
       "                    \"value\": 2.5998189678707146\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dominican Republic\",\n",
       "                    \"value\": 3.0155583469378575\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"East Asia\",\n",
       "                    \"value\": 3.424452685636429\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eastern Europe\",\n",
       "                    \"value\": 3.935313363843931\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eastern Sub-Saharan Africa\",\n",
       "                    \"value\": 3.9055431524307136\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ecuador\",\n",
       "                    \"value\": 2.9302966554839287\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Egypt\",\n",
       "                    \"value\": 3.177725208522857\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"El Salvador\",\n",
       "                    \"value\": 3.084600908450714\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"England\",\n",
       "                    \"value\": 4.169407301861429\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Equatorial Guinea\",\n",
       "                    \"value\": 4.193281131509287\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eritrea\",\n",
       "                    \"value\": 3.8981838449710713\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Estonia\",\n",
       "                    \"value\": 4.264454771378215\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ethiopia\",\n",
       "                    \"value\": 3.937355805732501\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Fiji\",\n",
       "                    \"value\": 3.158189522971785\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Finland\",\n",
       "                    \"value\": 5.183080118798215\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France\",\n",
       "                    \"value\": 4.3773285891975\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gabon\",\n",
       "                    \"value\": 4.115219673727501\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gambia\",\n",
       "                    \"value\": 4.1800877156750005\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Georgia\",\n",
       "                    \"value\": 2.7772175916610715\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Germany\",\n",
       "                    \"value\": 3.904906155939643\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ghana\",\n",
       "                    \"value\": 3.372093336832143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Greece\",\n",
       "                    \"value\": 4.207495473004642\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Greenland\",\n",
       "                    \"value\": 6.459108779363214\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Grenada\",\n",
       "                    \"value\": 2.7799782441310716\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guam\",\n",
       "                    \"value\": 3.4622294812214283\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guatemala\",\n",
       "                    \"value\": 3.360103121129286\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea\",\n",
       "                    \"value\": 3.518675453006786\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea-Bissau\",\n",
       "                    \"value\": 3.6119941659957138\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guyana\",\n",
       "                    \"value\": 4.059060552981785\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Haiti\",\n",
       "                    \"value\": 2.9618903265235716\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"High SDI\",\n",
       "                    \"value\": 3.8747890089660717\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"High-income\",\n",
       "                    \"value\": 4.048117887518215\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"High-income Asia Pacific\",\n",
       "                    \"value\": 3.0454255043960714\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"High-middle SDI\",\n",
       "                    \"value\": 3.6270108968335713\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Honduras\",\n",
       "                    \"value\": 2.686380218831072\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Hungary\",\n",
       "                    \"value\": 2.946017695389286\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iceland\",\n",
       "                    \"value\": 3.4622159655671427\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"India\",\n",
       "                    \"value\": 3.7762856335274995\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Indonesia\",\n",
       "                    \"value\": 2.623058187867143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iran\",\n",
       "                    \"value\": 4.874332581865715\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iraq\",\n",
       "                    \"value\": 3.7535631989035716\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ireland\",\n",
       "                    \"value\": 4.2955890419925\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Israel\",\n",
       "                    \"value\": 4.1035960768282145\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Italy\",\n",
       "                    \"value\": 3.4890298273375002\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jamaica\",\n",
       "                    \"value\": 2.5600966188882137\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Japan\",\n",
       "                    \"value\": 3.1004090313628576\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jordan\",\n",
       "                    \"value\": 3.7007306943732146\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kazakhstan\",\n",
       "                    \"value\": 3.5197924238742857\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kenya\",\n",
       "                    \"value\": 3.6224875691271423\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kiribati\",\n",
       "                    \"value\": 3.2177893083275007\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kuwait\",\n",
       "                    \"value\": 3.556787304110358\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kyrgyzstan\",\n",
       "                    \"value\": 3.1357615445653564\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Laos\",\n",
       "                    \"value\": 2.9031244611296434\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Latin America and Caribbean\",\n",
       "                    \"value\": 3.126872259495\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Latvia\",\n",
       "                    \"value\": 3.7166449912503574\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lebanon\",\n",
       "                    \"value\": 3.677471588261785\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lesotho\",\n",
       "                    \"value\": 5.42381080989857\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Liberia\",\n",
       "                    \"value\": 3.652035378127857\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Libya\",\n",
       "                    \"value\": 3.763219191094286\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lithuania\",\n",
       "                    \"value\": 4.281545679077857\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Low SDI\",\n",
       "                    \"value\": 3.7248733269446435\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Low-middle SDI\",\n",
       "                    \"value\": 3.782487039915715\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Luxembourg\",\n",
       "                    \"value\": 3.8013412948782133\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Macedonia\",\n",
       "                    \"value\": 2.377594811727143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Madagascar\",\n",
       "                    \"value\": 3.7249445128110708\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malawi\",\n",
       "                    \"value\": 3.4291790763575\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malaysia\",\n",
       "                    \"value\": 3.328805346685715\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Maldives\",\n",
       "                    \"value\": 3.320688280245\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mali\",\n",
       "                    \"value\": 2.979703177895715\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malta\",\n",
       "                    \"value\": 3.3859701673085714\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Marshall Islands\",\n",
       "                    \"value\": 3.1203282267192862\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritania\",\n",
       "                    \"value\": 3.071506556331786\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritius\",\n",
       "                    \"value\": 3.607825434738214\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mexico\",\n",
       "                    \"value\": 2.747504462198929\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Micronesia (country)\",\n",
       "                    \"value\": 3.1553979336307143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Middle SDI\",\n",
       "                    \"value\": 3.2525237757332137\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Moldova\",\n",
       "                    \"value\": 3.5464183269389293\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mongolia\",\n",
       "                    \"value\": 3.5103034380785716\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Montenegro\",\n",
       "                    \"value\": 2.5766037145385705\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Morocco\",\n",
       "                    \"value\": 5.610297671614285\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mozambique\",\n",
       "                    \"value\": 3.8394109971539288\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Myanmar\",\n",
       "                    \"value\": 2.252113093181429\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Namibia\",\n",
       "                    \"value\": 3.4519690434899997\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nepal\",\n",
       "                    \"value\": 3.641111177764285\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Netherlands\",\n",
       "                    \"value\": 4.086445517137142\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"New Zealand\",\n",
       "                    \"value\": 4.086396943933572\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nicaragua\",\n",
       "                    \"value\": 2.8530964684475006\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Niger\",\n",
       "                    \"value\": 3.4325567196182143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nigeria\",\n",
       "                    \"value\": 4.047074461932143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"North Africa and Middle East\",\n",
       "                    \"value\": 3.9633519394257144\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"North America\",\n",
       "                    \"value\": 4.674824541470714\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"North Korea\",\n",
       "                    \"value\": 3.170828584784643\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Northern Ireland\",\n",
       "                    \"value\": 4.287124094949286\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Northern Mariana Islands\",\n",
       "                    \"value\": 3.044708051834643\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Norway\",\n",
       "                    \"value\": 3.748898385164643\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Oceania\",\n",
       "                    \"value\": 3.1735775929839285\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Oman\",\n",
       "                    \"value\": 3.4409142866596434\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Pakistan\",\n",
       "                    \"value\": 3.4279229500503563\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Palestine\",\n",
       "                    \"value\": 4.818329691336072\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Panama\",\n",
       "                    \"value\": 2.66432947773\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Papua New Guinea\",\n",
       "                    \"value\": 3.1828362055685715\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Paraguay\",\n",
       "                    \"value\": 2.8731045218117863\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Peru\",\n",
       "                    \"value\": 2.3175002298064284\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Philippines\",\n",
       "                    \"value\": 2.782970210614643\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Poland\",\n",
       "                    \"value\": 2.28437501852\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Portugal\",\n",
       "                    \"value\": 4.699081419627143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Puerto Rico\",\n",
       "                    \"value\": 2.7702620864875\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Qatar\",\n",
       "                    \"value\": 3.6177870090907143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Romania\",\n",
       "                    \"value\": 2.3516792586532147\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Russia\",\n",
       "                    \"value\": 3.791145334255358\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Rwanda\",\n",
       "                    \"value\": 4.069197928414285\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Saint Lucia\",\n",
       "                    \"value\": 2.814604261228214\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Saint Vincent and the Grenadines\",\n",
       "                    \"value\": 2.8019698478417863\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Samoa\",\n",
       "                    \"value\": 3.101897255374286\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sao Tome and Principe\",\n",
       "                    \"value\": 3.1166737517364287\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Saudi Arabia\",\n",
       "                    \"value\": 3.467797159268214\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Scotland\",\n",
       "                    \"value\": 4.1809579115535715\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Senegal\",\n",
       "                    \"value\": 3.3072046778210717\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Serbia\",\n",
       "                    \"value\": 2.6766679461110714\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Seychelles\",\n",
       "                    \"value\": 2.9358759724699994\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sierra Leone\",\n",
       "                    \"value\": 3.5348104807446434\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Singapore\",\n",
       "                    \"value\": 3.678884211328571\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovakia\",\n",
       "                    \"value\": 2.480926396174286\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovenia\",\n",
       "                    \"value\": 3.1760164578235717\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Solomon Islands\",\n",
       "                    \"value\": 3.170130724694999\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Somalia\",\n",
       "                    \"value\": 3.772928797852501\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Africa\",\n",
       "                    \"value\": 3.7229541606107133\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Asia\",\n",
       "                    \"value\": 3.7816587786442852\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Korea\",\n",
       "                    \"value\": 2.9174535913132145\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Sudan\",\n",
       "                    \"value\": 3.6480725297789283\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Southeast Asia\",\n",
       "                    \"value\": 2.796893421841072\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Southeast Asia, East Asia, and Oceania\",\n",
       "                    \"value\": 3.266810368384285\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Southern Latin America\",\n",
       "                    \"value\": 3.7878360361785712\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Southern Sub-Saharan Africa\",\n",
       "                    \"value\": 3.6677214806360716\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Spain\",\n",
       "                    \"value\": 3.5165007217167847\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sri Lanka\",\n",
       "                    \"value\": 3.609633908995714\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sub-Saharan Africa\",\n",
       "                    \"value\": 3.8256232138649993\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sudan\",\n",
       "                    \"value\": 3.783116017542857\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Suriname\",\n",
       "                    \"value\": 3.8962791208328578\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Swaziland\",\n",
       "                    \"value\": 3.924040203056072\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sweden\",\n",
       "                    \"value\": 4.578980033394643\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Switzerland\",\n",
       "                    \"value\": 3.9554245427853565\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Syria\",\n",
       "                    \"value\": 3.5686295560217864\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Taiwan\",\n",
       "                    \"value\": 2.967115673775715\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tajikistan\",\n",
       "                    \"value\": 2.592138096268571\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tanzania\",\n",
       "                    \"value\": 3.7100646693571435\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Thailand\",\n",
       "                    \"value\": 3.079806223202857\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Timor\",\n",
       "                    \"value\": 3.2284843824153566\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Togo\",\n",
       "                    \"value\": 3.6271456198053564\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tonga\",\n",
       "                    \"value\": 2.91761384202\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Trinidad and Tobago\",\n",
       "                    \"value\": 3.3785591552907155\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tropical Latin America\",\n",
       "                    \"value\": 3.6713588640299997\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tunisia\",\n",
       "                    \"value\": 3.908149320993214\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Turkey\",\n",
       "                    \"value\": 3.8062774049517856\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Turkmenistan\",\n",
       "                    \"value\": 2.8725137339646425\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uganda\",\n",
       "                    \"value\": 5.227816602614642\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ukraine\",\n",
       "                    \"value\": 4.325317932572857\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Arab Emirates\",\n",
       "                    \"value\": 2.9660013667346434\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Kingdom\",\n",
       "                    \"value\": 4.172531377907143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United States\",\n",
       "                    \"value\": 4.744654912483214\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United States Virgin Islands\",\n",
       "                    \"value\": 2.8792782412207143\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uruguay\",\n",
       "                    \"value\": 3.442514360361429\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uzbekistan\",\n",
       "                    \"value\": 2.9224813795624995\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vanuatu\",\n",
       "                    \"value\": 3.1459035295125006\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Venezuela\",\n",
       "                    \"value\": 2.8022170450078576\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vietnam\",\n",
       "                    \"value\": 2.910582110596429\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Wales\",\n",
       "                    \"value\": 4.140226844856072\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Western Europe\",\n",
       "                    \"value\": 3.9648730720546426\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Western Sub-Saharan Africa\",\n",
       "                    \"value\": 3.7453523306474996\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"World\",\n",
       "                    \"value\": 3.504354990345714\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Yemen\",\n",
       "                    \"value\": 4.004946803603929\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zambia\",\n",
       "                    \"value\": 3.5539404841399995\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zimbabwe\",\n",
       "                    \"value\": 3.103040412327857\n",
       "                }\n",
       "            ],\n",
       "            \"roam\": true,\n",
       "            \"zoom\": 1,\n",
       "            \"showLegendSymbol\": true,\n",
       "            \"emphasis\": {},\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u4e16\\u754c\\u5404\\u56fd\\u4eba\\u5747\\u6291\\u90c1\\u75c7\\u60a3\\u75c5\\u7387\\u5730\\u56fe\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u4e16\\u754c\\u5404\\u56fd\\u4eba\\u5747\\u6291\\u90c1\\u75c7\\u60a3\\u75c5\\u7387\\u5730\\u56fe\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u4e16\\u754c\\u5404\\u56fd\\u4eba\\u5747\\u6291\\u90c1\\u75c7\\u60a3\\u75c5\\u7387\\u5730\\u56fe\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"piecewise\",\n",
       "        \"min\": 2.1904422523696434,\n",
       "        \"max\": 6.459108779363214,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#50a3ba\",\n",
       "                \"#eac763\",\n",
       "                \"#d94e5d\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"inverse\": false,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"showLabel\": true,\n",
       "        \"itemWidth\": 20,\n",
       "        \"itemHeight\": 14,\n",
       "        \"borderWidth\": 0\n",
       "    }\n",
       "};\n",
       "                chart_53912bfe771d424a91941d4d80522f43.setOption(option_53912bfe771d424a91941d4d80522f43);\n",
       "                var chart_25548cd1e1e64cadac369984020f8758 = echarts.init(\n",
       "                    document.getElementById('25548cd1e1e64cadac369984020f8758'), 'white', {renderer: 'canvas'});\n",
       "                var option_25548cd1e1e64cadac369984020f8758 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"map\",\n",
       "            \"name\": \"\\u4e16\\u754c\\u5404\\u56fd15\\u5c81\\u4ee5\\u4e0a\\u53d7\\u8fc7\\u9ad8\\u7b49\\u6559\\u80b2\\u7684\\u4eba\\u53e3\\u767e\\u5206\\u6bd4\",\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"mapType\": \"world\",\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Afghanistan\",\n",
       "                    \"value\": 2.662222222222222\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Albania\",\n",
       "                    \"value\": 2.371111111111111\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Algeria\",\n",
       "                    \"value\": 2.3344444444444443\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Argentina\",\n",
       "                    \"value\": 3.7477777777777783\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Armenia\",\n",
       "                    \"value\": 9.795555555555556\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Australia\",\n",
       "                    \"value\": 13.965555555555556\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Austria\",\n",
       "                    \"value\": 4.441111111111111\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahrain\",\n",
       "                    \"value\": 6.391111111111112\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bangladesh\",\n",
       "                    \"value\": 1.3566666666666665\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Barbados\",\n",
       "                    \"value\": 1.6055555555555554\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belgium\",\n",
       "                    \"value\": 12.078888888888887\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belize\",\n",
       "                    \"value\": 2.3033333333333332\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Benin\",\n",
       "                    \"value\": 0.7244444444444444\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bolivia\",\n",
       "                    \"value\": 4.412222222222222\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Botswana\",\n",
       "                    \"value\": 1.1966666666666665\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brazil\",\n",
       "                    \"value\": 3.2066666666666666\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brunei\",\n",
       "                    \"value\": 4.003333333333333\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bulgaria\",\n",
       "                    \"value\": 8.761111111111111\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burundi\",\n",
       "                    \"value\": 0.2544444444444445\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cambodia\",\n",
       "                    \"value\": 0.35888888888888887\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cameroon\",\n",
       "                    \"value\": 0.6022222222222222\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Canada\",\n",
       "                    \"value\": 13.773333333333333\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central African Republic\",\n",
       "                    \"value\": 0.5977777777777779\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chile\",\n",
       "                    \"value\": 5.327777777777778\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"China\",\n",
       "                    \"value\": 1.4944444444444445\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Colombia\",\n",
       "                    \"value\": 7.065555555555556\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Congo\",\n",
       "                    \"value\": 0.8855555555555554\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Costa Rica\",\n",
       "                    \"value\": 8.838888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cote d'Ivoire\",\n",
       "                    \"value\": 1.318888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Croatia\",\n",
       "                    \"value\": 4.998888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cuba\",\n",
       "                    \"value\": 5.370000000000001\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cyprus\",\n",
       "                    \"value\": 10.797777777777778\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Czech Republic\",\n",
       "                    \"value\": 4.583333333333333\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Democratic Republic of Congo\",\n",
       "                    \"value\": 0.4044444444444444\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Denmark\",\n",
       "                    \"value\": 10.005555555555555\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dominican Republic\",\n",
       "                    \"value\": 1.731111111111111\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ecuador\",\n",
       "                    \"value\": 4.546666666666667\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Egypt\",\n",
       "                    \"value\": 2.9655555555555555\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"El Salvador\",\n",
       "                    \"value\": 4.231111111111111\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Estonia\",\n",
       "                    \"value\": 10.262222222222222\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Fiji\",\n",
       "                    \"value\": 3.8133333333333335\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Finland\",\n",
       "                    \"value\": 7.736666666666666\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France\",\n",
       "                    \"value\": 6.078888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gabon\",\n",
       "                    \"value\": 3.908888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gambia\",\n",
       "                    \"value\": 0.6233333333333334\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Germany\",\n",
       "                    \"value\": 6.963333333333334\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ghana\",\n",
       "                    \"value\": 1.0522222222222222\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Greece\",\n",
       "                    \"value\": 11.30111111111111\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guatemala\",\n",
       "                    \"value\": 1.1755555555555557\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guyana\",\n",
       "                    \"value\": 0.4588888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Haiti\",\n",
       "                    \"value\": 0.46111111111111114\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Honduras\",\n",
       "                    \"value\": 1.5522222222222222\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Hong Kong\",\n",
       "                    \"value\": 7.987777777777778\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Hungary\",\n",
       "                    \"value\": 8.47\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iceland\",\n",
       "                    \"value\": 8.303333333333333\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"India\",\n",
       "                    \"value\": 2.5955555555555554\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Indonesia\",\n",
       "                    \"value\": 1.2455555555555557\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iran\",\n",
       "                    \"value\": 5.5344444444444445\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iraq\",\n",
       "                    \"value\": 4.082222222222222\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ireland\",\n",
       "                    \"value\": 12.257777777777777\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Israel\",\n",
       "                    \"value\": 14.217777777777776\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Italy\",\n",
       "                    \"value\": 3.6755555555555555\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jamaica\",\n",
       "                    \"value\": 3.6133333333333337\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Japan\",\n",
       "                    \"value\": 11.634444444444442\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jordan\",\n",
       "                    \"value\": 3.314444444444445\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kazakhstan\",\n",
       "                    \"value\": 7.598888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kenya\",\n",
       "                    \"value\": 1.528888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kuwait\",\n",
       "                    \"value\": 4.518888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kyrgyzstan\",\n",
       "                    \"value\": 6.441111111111112\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Laos\",\n",
       "                    \"value\": 1.7311111111111108\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Latvia\",\n",
       "                    \"value\": 7.637777777777777\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lesotho\",\n",
       "                    \"value\": 0.39222222222222225\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Liberia\",\n",
       "                    \"value\": 1.4877777777777776\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Libya\",\n",
       "                    \"value\": 3.7255555555555557\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lithuania\",\n",
       "                    \"value\": 8.038888888888888\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Luxembourg\",\n",
       "                    \"value\": 8.423333333333334\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Macao\",\n",
       "                    \"value\": 4.21\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malawi\",\n",
       "                    \"value\": 0.18666666666666665\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malaysia\",\n",
       "                    \"value\": 2.53\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Maldives\",\n",
       "                    \"value\": 0.20111111111111113\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mali\",\n",
       "                    \"value\": 0.3544444444444445\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malta\",\n",
       "                    \"value\": 5.725555555555555\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritania\",\n",
       "                    \"value\": 0.7055555555555555\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritius\",\n",
       "                    \"value\": 0.9533333333333331\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mexico\",\n",
       "                    \"value\": 4.9944444444444445\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Moldova\",\n",
       "                    \"value\": 5.814444444444444\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mongolia\",\n",
       "                    \"value\": 10.128888888888888\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Morocco\",\n",
       "                    \"value\": 2.714444444444444\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mozambique\",\n",
       "                    \"value\": 0.12555555555555556\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Myanmar\",\n",
       "                    \"value\": 2.06\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Namibia\",\n",
       "                    \"value\": 1.0622222222222222\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nepal\",\n",
       "                    \"value\": 1.3444444444444443\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Netherlands\",\n",
       "                    \"value\": 9.363333333333333\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"New Zealand\",\n",
       "                    \"value\": 14.352222222222224\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nicaragua\",\n",
       "                    \"value\": 8.05888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Niger\",\n",
       "                    \"value\": 0.29666666666666663\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Norway\",\n",
       "                    \"value\": 7.345555555555555\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Pakistan\",\n",
       "                    \"value\": 2.8966666666666665\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Panama\",\n",
       "                    \"value\": 7.611111111111111\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Papua New Guinea\",\n",
       "                    \"value\": 0.3933333333333333\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Paraguay\",\n",
       "                    \"value\": 2.553333333333333\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Peru\",\n",
       "                    \"value\": 12.362222222222222\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Philippines\",\n",
       "                    \"value\": 6.7411111111111115\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Poland\",\n",
       "                    \"value\": 5.324444444444444\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Portugal\",\n",
       "                    \"value\": 2.498888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Qatar\",\n",
       "                    \"value\": 7.973333333333333\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Romania\",\n",
       "                    \"value\": 3.914444444444445\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Russia\",\n",
       "                    \"value\": 12.719999999999999\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Rwanda\",\n",
       "                    \"value\": 0.19\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Saudi Arabia\",\n",
       "                    \"value\": 5.088888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Senegal\",\n",
       "                    \"value\": 0.6133333333333334\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Serbia\",\n",
       "                    \"value\": 5.167777777777777\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sierra Leone\",\n",
       "                    \"value\": 0.4588888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Singapore\",\n",
       "                    \"value\": 8.575555555555557\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovakia\",\n",
       "                    \"value\": 4.451111111111111\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovenia\",\n",
       "                    \"value\": 6.378888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Africa\",\n",
       "                    \"value\": 0.3355555555555555\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Korea\",\n",
       "                    \"value\": 12.453333333333331\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Spain\",\n",
       "                    \"value\": 7.351111111111111\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sri Lanka\",\n",
       "                    \"value\": 4.035555555555556\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sudan\",\n",
       "                    \"value\": 0.7077777777777778\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Swaziland\",\n",
       "                    \"value\": 1.2277777777777779\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sweden\",\n",
       "                    \"value\": 10.235555555555557\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Switzerland\",\n",
       "                    \"value\": 9.32111111111111\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Syria\",\n",
       "                    \"value\": 1.828888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tajikistan\",\n",
       "                    \"value\": 4.287777777777778\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tanzania\",\n",
       "                    \"value\": 0.29666666666666663\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Thailand\",\n",
       "                    \"value\": 4.598888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Togo\",\n",
       "                    \"value\": 0.8288888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tonga\",\n",
       "                    \"value\": 2.5833333333333335\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Trinidad and Tobago\",\n",
       "                    \"value\": 2.661111111111111\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tunisia\",\n",
       "                    \"value\": 2.752222222222222\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Turkey\",\n",
       "                    \"value\": 3.8644444444444446\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uganda\",\n",
       "                    \"value\": 0.7233333333333333\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ukraine\",\n",
       "                    \"value\": 13.254444444444443\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Arab Emirates\",\n",
       "                    \"value\": 6.148888888888888\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Kingdom\",\n",
       "                    \"value\": 9.297777777777776\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United States\",\n",
       "                    \"value\": 19.241111111111113\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uruguay\",\n",
       "                    \"value\": 3.4499999999999997\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Venezuela\",\n",
       "                    \"value\": 2.3666666666666667\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vietnam\",\n",
       "                    \"value\": 1.4811111111111108\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Yemen\",\n",
       "                    \"value\": 0.5688888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zambia\",\n",
       "                    \"value\": 0.3888888888888889\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zimbabwe\",\n",
       "                    \"value\": 1.1655555555555557\n",
       "                }\n",
       "            ],\n",
       "            \"roam\": true,\n",
       "            \"zoom\": 1,\n",
       "            \"showLegendSymbol\": true,\n",
       "            \"emphasis\": {},\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u4e16\\u754c\\u5404\\u56fd15\\u5c81\\u4ee5\\u4e0a\\u53d7\\u8fc7\\u9ad8\\u7b49\\u6559\\u80b2\\u7684\\u4eba\\u53e3\\u767e\\u5206\\u6bd4\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u4e16\\u754c\\u5404\\u56fd15\\u5c81\\u4ee5\\u4e0a\\u53d7\\u8fc7\\u9ad8\\u7b49\\u6559\\u80b2\\u7684\\u4eba\\u53e3\\u767e\\u5206\\u6bd4\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u4e16\\u754c\\u5404\\u56fd15\\u5c81\\u4ee5\\u4e0a\\u53d7\\u8fc7\\u9ad8\\u7b49\\u6559\\u80b2\\u7684\\u4eba\\u53e3\\u767e\\u5206\\u6bd4\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"piecewise\",\n",
       "        \"min\": 0.12555555555555556,\n",
       "        \"max\": 19.241111111111113,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#50a3ba\",\n",
       "                \"#eac763\",\n",
       "                \"#d94e5d\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"inverse\": false,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"showLabel\": true,\n",
       "        \"itemWidth\": 20,\n",
       "        \"itemHeight\": 14,\n",
       "        \"borderWidth\": 0\n",
       "    }\n",
       "};\n",
       "                chart_25548cd1e1e64cadac369984020f8758.setOption(option_25548cd1e1e64cadac369984020f8758);\n",
       "                var chart_18bab14ef5fd438289d855c609385818 = echarts.init(\n",
       "                    document.getElementById('18bab14ef5fd438289d855c609385818'), 'white', {renderer: 'canvas'});\n",
       "                var option_18bab14ef5fd438289d855c609385818 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"map\",\n",
       "            \"name\": \"\\u4e16\\u754c\\u5404\\u56fd\\u4eba\\u5747\\u56fd\\u5185\\u751f\\u4ea7\\u603b\\u503c-\\u589e\\u957f\",\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"mapType\": \"world\",\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"Afghanistan\",\n",
       "                    \"value\": 3.7275583757710375\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Albania\",\n",
       "                    \"value\": 2.6125023921304935\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Algeria\",\n",
       "                    \"value\": 1.433050054636539\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"American Samoa\",\n",
       "                    \"value\": -0.6809108039884988\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Andorra\",\n",
       "                    \"value\": 0.1471816527567868\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Angola\",\n",
       "                    \"value\": 1.4027147783505278\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Antigua and Barbuda\",\n",
       "                    \"value\": 2.988506243069783\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Arab World\",\n",
       "                    \"value\": 1.1680523753248562\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Argentina\",\n",
       "                    \"value\": 1.2452805359662364\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Armenia\",\n",
       "                    \"value\": 3.9746406921681388\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Aruba\",\n",
       "                    \"value\": -0.9183231793917197\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Australia\",\n",
       "                    \"value\": 1.890150896504544\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Austria\",\n",
       "                    \"value\": 2.3745290971859934\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Azerbaijan\",\n",
       "                    \"value\": 3.17990295615753\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahamas\",\n",
       "                    \"value\": 0.9071038203202255\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bahrain\",\n",
       "                    \"value\": 0.19538784905949574\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bangladesh\",\n",
       "                    \"value\": 1.9926949794279476\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Barbados\",\n",
       "                    \"value\": 1.0256651644925567\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belarus\",\n",
       "                    \"value\": 2.938209938863218\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belgium\",\n",
       "                    \"value\": 2.238092117454185\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Belize\",\n",
       "                    \"value\": 2.5480370825915117\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Benin\",\n",
       "                    \"value\": 0.9277570817677474\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bermuda\",\n",
       "                    \"value\": 2.062714626531502\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bhutan\",\n",
       "                    \"value\": 5.6136474630953925\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bolivia\",\n",
       "                    \"value\": 1.2225497057495027\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bosnia and Herzegovina\",\n",
       "                    \"value\": 10.660541898096557\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Botswana\",\n",
       "                    \"value\": 5.458892749896009\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brazil\",\n",
       "                    \"value\": 2.120495157429163\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Brunei\",\n",
       "                    \"value\": -0.6929066800722515\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Bulgaria\",\n",
       "                    \"value\": 2.6891479879809794\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burkina Faso\",\n",
       "                    \"value\": 1.916056691580757\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Burundi\",\n",
       "                    \"value\": 0.13100004801136117\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cambodia\",\n",
       "                    \"value\": 3.9003335123525726\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cameroon\",\n",
       "                    \"value\": 0.9376767907537092\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Canada\",\n",
       "                    \"value\": 1.9094572545401676\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cape Verde\",\n",
       "                    \"value\": 4.67811658456915\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Caribbean small states\",\n",
       "                    \"value\": 1.2139322760261124\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cayman Islands\",\n",
       "                    \"value\": 0.36841919815037705\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central African Republic\",\n",
       "                    \"value\": -0.7950675669883394\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Central Europe and the Baltics\",\n",
       "                    \"value\": 2.958760742472898\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chad\",\n",
       "                    \"value\": 0.6058754637745583\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Channel Islands\",\n",
       "                    \"value\": 1.0058474568522344\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Chile\",\n",
       "                    \"value\": 2.545205996609967\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"China\",\n",
       "                    \"value\": 6.836383249959293\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Colombia\",\n",
       "                    \"value\": 2.2083422209982713\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Comoros\",\n",
       "                    \"value\": -0.2967648948649535\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Congo\",\n",
       "                    \"value\": 1.1799024107506717\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Costa Rica\",\n",
       "                    \"value\": 2.2272912582997586\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cote d'Ivoire\",\n",
       "                    \"value\": 0.662080945403973\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Croatia\",\n",
       "                    \"value\": 2.760660819517339\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cuba\",\n",
       "                    \"value\": 2.544914887041236\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Cyprus\",\n",
       "                    \"value\": 3.3794246408619038\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Czech Republic\",\n",
       "                    \"value\": 1.8942064548506505\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Democratic Republic of Congo\",\n",
       "                    \"value\": -1.4470509333577009\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Denmark\",\n",
       "                    \"value\": 1.9235820611988894\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Djibouti\",\n",
       "                    \"value\": 6.112591878603962\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dominica\",\n",
       "                    \"value\": 2.5679369161464978\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Dominican Republic\",\n",
       "                    \"value\": 3.1166273975230547\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Early-demographic dividend\",\n",
       "                    \"value\": 2.091375853939796\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"East Asia & Pacific\",\n",
       "                    \"value\": 3.6686509892863817\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"East Asia & Pacific (IDA & IBRD)\",\n",
       "                    \"value\": 5.571397114180923\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"East Asia & Pacific (excluding high income)\",\n",
       "                    \"value\": 5.572181777818065\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ecuador\",\n",
       "                    \"value\": 1.551785470705444\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Egypt\",\n",
       "                    \"value\": 2.6734534078094083\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"El Salvador\",\n",
       "                    \"value\": 0.7967674238756545\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Equatorial Guinea\",\n",
       "                    \"value\": 10.47887765627832\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Eritrea\",\n",
       "                    \"value\": 1.88479441303015\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Estonia\",\n",
       "                    \"value\": 4.603761553077909\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ethiopia\",\n",
       "                    \"value\": 2.6972740512722093\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Euro area\",\n",
       "                    \"value\": 2.3459123190449866\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Europe & Central Asia\",\n",
       "                    \"value\": 1.7469683917339787\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Europe & Central Asia (IDA & IBRD)\",\n",
       "                    \"value\": 1.6485155791278239\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Europe & Central Asia (excluding high income)\",\n",
       "                    \"value\": 1.459050041738576\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"European Union\",\n",
       "                    \"value\": 2.3072925319310853\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Fiji\",\n",
       "                    \"value\": 1.665160088475766\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Finland\",\n",
       "                    \"value\": 2.44531914795233\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Fragile and conflict affected situations\",\n",
       "                    \"value\": 1.4117714532283676\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"France\",\n",
       "                    \"value\": 2.120990373799592\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"French Polynesia\",\n",
       "                    \"value\": 1.6200010450588536\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gabon\",\n",
       "                    \"value\": 1.7756535735357757\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Gambia\",\n",
       "                    \"value\": 0.5169560187817254\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Georgia\",\n",
       "                    \"value\": 2.368841256880117\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Germany\",\n",
       "                    \"value\": 1.8828957728580873\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ghana\",\n",
       "                    \"value\": 1.0521164406027974\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Greece\",\n",
       "                    \"value\": 2.2598078147387977\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Greenland\",\n",
       "                    \"value\": 2.666144557285294\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Grenada\",\n",
       "                    \"value\": 2.9057695178005747\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guam\",\n",
       "                    \"value\": 1.055671601402352\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guatemala\",\n",
       "                    \"value\": 1.3658968739062463\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea\",\n",
       "                    \"value\": 1.2559215002074364\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guinea-Bissau\",\n",
       "                    \"value\": 0.7012979693797631\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Guyana\",\n",
       "                    \"value\": 1.5905730616938216\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Haiti\",\n",
       "                    \"value\": -0.15070858477987065\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Heavily indebted poor countries (HIPC)\",\n",
       "                    \"value\": 0.6247805440241732\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"High income\",\n",
       "                    \"value\": 2.282725355106338\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Honduras\",\n",
       "                    \"value\": 1.277332499166093\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Hong Kong\",\n",
       "                    \"value\": 4.494915523287527\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Hungary\",\n",
       "                    \"value\": 2.2518885449257806\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"IBRD only\",\n",
       "                    \"value\": 3.0043617416929873\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"IDA & IBRD total\",\n",
       "                    \"value\": 2.730449766128768\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"IDA blend\",\n",
       "                    \"value\": 1.4944396565633402\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"IDA only\",\n",
       "                    \"value\": 1.0167787943645241\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"IDA total\",\n",
       "                    \"value\": 1.2629701263714275\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iceland\",\n",
       "                    \"value\": 2.441618678985349\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"India\",\n",
       "                    \"value\": 3.37554637427994\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Indonesia\",\n",
       "                    \"value\": 3.245651084619568\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iran\",\n",
       "                    \"value\": 1.8992763697822794\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Iraq\",\n",
       "                    \"value\": 4.594645664025431\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ireland\",\n",
       "                    \"value\": 3.9731274690013954\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Isle of Man\",\n",
       "                    \"value\": 5.365084663868277\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Israel\",\n",
       "                    \"value\": 2.4624733659032856\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Italy\",\n",
       "                    \"value\": 2.100008170870956\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jamaica\",\n",
       "                    \"value\": 0.5514429401137511\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Japan\",\n",
       "                    \"value\": 3.1398765490103187\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Jordan\",\n",
       "                    \"value\": 1.7859260308461802\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kazakhstan\",\n",
       "                    \"value\": 2.5058293342012763\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kenya\",\n",
       "                    \"value\": 1.4599192761983388\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kiribati\",\n",
       "                    \"value\": -0.2949645878462663\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kosovo\",\n",
       "                    \"value\": 4.662799983114256\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kuwait\",\n",
       "                    \"value\": -2.6578191751387807\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Kyrgyzstan\",\n",
       "                    \"value\": 0.7192583005057159\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Laos\",\n",
       "                    \"value\": 4.403151158033333\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Late-demographic dividend\",\n",
       "                    \"value\": 3.920447151307898\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Latin America & Caribbean\",\n",
       "                    \"value\": 1.6891977756875802\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Latin America & Caribbean (IDA & IBRD)\",\n",
       "                    \"value\": 1.6611880334991922\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Latin America & Caribbean (excluding high income)\",\n",
       "                    \"value\": 1.7492845871550358\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Latvia\",\n",
       "                    \"value\": 5.31973457720407\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Least developed countries: UN classification\",\n",
       "                    \"value\": 1.623130227304175\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lebanon\",\n",
       "                    \"value\": 1.4887949038344388\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lesotho\",\n",
       "                    \"value\": 3.1767333371180313\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Liberia\",\n",
       "                    \"value\": -0.8111102355579969\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Libya\",\n",
       "                    \"value\": 3.8275308917352766\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Liechtenstein\",\n",
       "                    \"value\": 2.4104433388366813\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lithuania\",\n",
       "                    \"value\": 5.49826875763621\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Low & middle income\",\n",
       "                    \"value\": 2.8329697242292915\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Low income\",\n",
       "                    \"value\": 0.773848360487559\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Lower middle income\",\n",
       "                    \"value\": 2.4631139855172703\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Luxembourg\",\n",
       "                    \"value\": 2.5105974157382414\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Macao\",\n",
       "                    \"value\": 3.904636168611295\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Macedonia\",\n",
       "                    \"value\": 1.2126589161978747\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Madagascar\",\n",
       "                    \"value\": -0.8465644605253558\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malawi\",\n",
       "                    \"value\": 1.3592416522470503\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malaysia\",\n",
       "                    \"value\": 3.8784625795423078\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Maldives\",\n",
       "                    \"value\": 3.3410696784032696\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mali\",\n",
       "                    \"value\": 1.7394497525014696\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Malta\",\n",
       "                    \"value\": 4.382701717693629\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Marshall Islands\",\n",
       "                    \"value\": 1.362296118179056\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritania\",\n",
       "                    \"value\": 1.0383166937968933\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mauritius\",\n",
       "                    \"value\": 3.6985567434115256\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mexico\",\n",
       "                    \"value\": 1.7500151133747603\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Micronesia (country)\",\n",
       "                    \"value\": 0.7237355909710542\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Middle East & North Africa\",\n",
       "                    \"value\": 1.7771468808776998\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Middle East & North Africa (IDA & IBRD)\",\n",
       "                    \"value\": 1.6489674732248476\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Middle East & North Africa (excluding high income)\",\n",
       "                    \"value\": 1.627734951444804\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Middle income\",\n",
       "                    \"value\": 2.9529607125453206\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Moldova\",\n",
       "                    \"value\": 3.2985568064046222\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Monaco\",\n",
       "                    \"value\": 1.9939713307875009\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mongolia\",\n",
       "                    \"value\": 3.0582508341583994\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Montenegro\",\n",
       "                    \"value\": 2.3267029174842326\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Morocco\",\n",
       "                    \"value\": 2.836967457763884\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Mozambique\",\n",
       "                    \"value\": 2.9649296338364834\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Myanmar\",\n",
       "                    \"value\": 4.155801904786341\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Namibia\",\n",
       "                    \"value\": 0.8531763515767689\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nauru\",\n",
       "                    \"value\": 13.045880710858052\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nepal\",\n",
       "                    \"value\": 1.8114452347681975\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Netherlands\",\n",
       "                    \"value\": 2.126017856366324\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"New Caledonia\",\n",
       "                    \"value\": 1.7540085159360435\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"New Zealand\",\n",
       "                    \"value\": 1.3752466351567836\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nicaragua\",\n",
       "                    \"value\": 0.678467526351812\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Niger\",\n",
       "                    \"value\": -0.6015950862320919\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Nigeria\",\n",
       "                    \"value\": 1.3957412474959165\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"North America\",\n",
       "                    \"value\": 2.021865554123212\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Northern Mariana Islands\",\n",
       "                    \"value\": -0.3028329300341187\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Norway\",\n",
       "                    \"value\": 2.4504149639673916\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"OECD members\",\n",
       "                    \"value\": 2.214159238296039\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Oman\",\n",
       "                    \"value\": 4.57734871145374\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Other small states\",\n",
       "                    \"value\": 3.066109250329074\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Pacific island small states\",\n",
       "                    \"value\": 0.7305921460316558\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Pakistan\",\n",
       "                    \"value\": 2.4906825987541463\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Palau\",\n",
       "                    \"value\": 0.48976461702976953\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Palestine\",\n",
       "                    \"value\": 2.5902264965402817\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Panama\",\n",
       "                    \"value\": 3.0846441503604307\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Papua New Guinea\",\n",
       "                    \"value\": 1.4330976456803082\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Paraguay\",\n",
       "                    \"value\": 2.4450840702006764\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Peru\",\n",
       "                    \"value\": 1.58645710927846\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Philippines\",\n",
       "                    \"value\": 1.8226722349038826\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Poland\",\n",
       "                    \"value\": 3.709705197458438\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Portugal\",\n",
       "                    \"value\": 2.9775477494371443\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Post-demographic dividend\",\n",
       "                    \"value\": 2.3547794491145755\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Pre-demographic dividend\",\n",
       "                    \"value\": 1.3345765346036018\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Puerto Rico\",\n",
       "                    \"value\": 2.8412423060536076\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Qatar\",\n",
       "                    \"value\": 0.524638399213616\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Romania\",\n",
       "                    \"value\": 2.824599093123823\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Russia\",\n",
       "                    \"value\": 0.7510562717089976\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Rwanda\",\n",
       "                    \"value\": 2.0318313484630046\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Saint Kitts and Nevis\",\n",
       "                    \"value\": 3.538518494408941\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Saint Lucia\",\n",
       "                    \"value\": 2.468452425949379\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Saint Vincent and the Grenadines\",\n",
       "                    \"value\": 2.5526787717233406\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Samoa\",\n",
       "                    \"value\": 1.658014755852521\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"San Marino\",\n",
       "                    \"value\": -0.5346381634666014\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sao Tome and Principe\",\n",
       "                    \"value\": 2.6402991483649068\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Saudi Arabia\",\n",
       "                    \"value\": 1.3794426935808324\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Senegal\",\n",
       "                    \"value\": 0.14691305796271542\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Serbia\",\n",
       "                    \"value\": 3.06221518706602\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Seychelles\",\n",
       "                    \"value\": 3.0221637824852596\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sierra Leone\",\n",
       "                    \"value\": 0.5875891114568269\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Singapore\",\n",
       "                    \"value\": 5.10450447087051\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovakia\",\n",
       "                    \"value\": 3.9300005156840716\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Slovenia\",\n",
       "                    \"value\": 2.5044229948788943\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Small states\",\n",
       "                    \"value\": 2.68941778529085\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Solomon Islands\",\n",
       "                    \"value\": 0.7560031830928813\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Somalia\",\n",
       "                    \"value\": -0.82290235483439\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Africa\",\n",
       "                    \"value\": 0.9223292598221168\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Asia\",\n",
       "                    \"value\": 3.137998952604899\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Asia (IDA & IBRD)\",\n",
       "                    \"value\": 3.137998952604899\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Korea\",\n",
       "                    \"value\": 6.065894948365725\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"South Sudan\",\n",
       "                    \"value\": -9.706790671378752\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Spain\",\n",
       "                    \"value\": 2.675030294329308\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sri Lanka\",\n",
       "                    \"value\": 3.438795265711772\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sub-Saharan Africa\",\n",
       "                    \"value\": 0.7862722528417557\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sub-Saharan Africa (IDA & IBRD)\",\n",
       "                    \"value\": 0.7862722528417566\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sub-Saharan Africa (excluding high income)\",\n",
       "                    \"value\": 0.7855932608415434\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sudan\",\n",
       "                    \"value\": 1.5386000742434016\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Suriname\",\n",
       "                    \"value\": 0.2579798686126758\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Swaziland\",\n",
       "                    \"value\": 2.658462433475705\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Sweden\",\n",
       "                    \"value\": 2.050764789720615\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Switzerland\",\n",
       "                    \"value\": 0.9208073236853561\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Syrian Arab Republic\",\n",
       "                    \"value\": 2.5730332558767706\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tajikistan\",\n",
       "                    \"value\": -0.383500078035552\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tanzania\",\n",
       "                    \"value\": 2.2622450754373147\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Thailand\",\n",
       "                    \"value\": 4.303862151610732\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Timor\",\n",
       "                    \"value\": 5.937672665667649\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Togo\",\n",
       "                    \"value\": 1.0439600238898732\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tonga\",\n",
       "                    \"value\": 1.5991037857402446\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Trinidad and Tobago\",\n",
       "                    \"value\": 2.095940951406658\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tunisia\",\n",
       "                    \"value\": 2.684738197878409\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Turkey\",\n",
       "                    \"value\": 2.8269479537228945\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Turkmenistan\",\n",
       "                    \"value\": 3.767533265428703\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Tuvalu\",\n",
       "                    \"value\": 1.7070996532062213\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uganda\",\n",
       "                    \"value\": 2.316012239734527\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Ukraine\",\n",
       "                    \"value\": -0.6028577034691012\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Arab Emirates\",\n",
       "                    \"value\": -1.9044283499223282\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United Kingdom\",\n",
       "                    \"value\": 2.011177703278425\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United States\",\n",
       "                    \"value\": 2.0344840682672536\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"United States Virgin Islands\",\n",
       "                    \"value\": 0.362102290544293\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Upper middle income\",\n",
       "                    \"value\": 3.3357928290421803\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uruguay\",\n",
       "                    \"value\": 1.7938174610160909\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Uzbekistan\",\n",
       "                    \"value\": 2.7156017891169326\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vanuatu\",\n",
       "                    \"value\": 0.6408778287676821\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Venezuela\",\n",
       "                    \"value\": 0.3056610699896996\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Vietnam\",\n",
       "                    \"value\": 4.928883710416424\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"World\",\n",
       "                    \"value\": 1.8814406669739352\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Yemen\",\n",
       "                    \"value\": -2.3282332116401756\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zambia\",\n",
       "                    \"value\": 0.25675850783421184\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"Zimbabwe\",\n",
       "                    \"value\": 0.30034622330756344\n",
       "                }\n",
       "            ],\n",
       "            \"roam\": true,\n",
       "            \"zoom\": 1,\n",
       "            \"showLegendSymbol\": true,\n",
       "            \"emphasis\": {},\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u4e16\\u754c\\u5404\\u56fd\\u4eba\\u5747\\u56fd\\u5185\\u751f\\u4ea7\\u603b\\u503c-\\u589e\\u957f\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u4e16\\u754c\\u5404\\u56fd\\u4eba\\u5747\\u56fd\\u5185\\u751f\\u4ea7\\u603b\\u503c-\\u589e\\u957f\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u4e16\\u754c\\u5404\\u56fd\\u4eba\\u5747\\u56fd\\u5185\\u751f\\u4ea7\\u603b\\u503c-\\u589e\\u957f\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"piecewise\",\n",
       "        \"min\": -9.706790671378752,\n",
       "        \"max\": 13.045880710858052,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#50a3ba\",\n",
       "                \"#eac763\",\n",
       "                \"#d94e5d\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"inverse\": false,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"showLabel\": true,\n",
       "        \"itemWidth\": 20,\n",
       "        \"itemHeight\": 14,\n",
       "        \"borderWidth\": 0\n",
       "    }\n",
       "};\n",
       "                chart_18bab14ef5fd438289d855c609385818.setOption(option_18bab14ef5fd438289d855c609385818);\n",
       "        });\n",
       "    </script>\n",
       "<script>\n",
       "        (function() {\n",
       "            containers = document.getElementsByClassName(\"chart-container\");\n",
       "            if(containers.length > 0) {\n",
       "                containers[0].style.display = \"block\";\n",
       "            }\n",
       "        })()\n",
       "\n",
       "        function showChart(evt, chartID) {\n",
       "            let containers = document.getElementsByClassName(\"chart-container\");\n",
       "            for (let i = 0; i < containers.length; i++) {\n",
       "                containers[i].style.display = \"none\";\n",
       "            }\n",
       "\n",
       "            let tablinks = document.getElementsByClassName(\"tablinks\");\n",
       "            for (let i = 0; i < tablinks.length; i++) {\n",
       "                tablinks[i].className = \"tablinks\";\n",
       "            }\n",
       "\n",
       "            document.getElementById(chartID).style.display = \"block\";\n",
       "            evt.currentTarget.className += \" active\";\n",
       "        }\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x1ee50290898>"
      ]
     },
     "execution_count": 90,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tab = Tab()\n",
    "tab.add(worlddp, \"世界各国人均抑郁症患病率地图\")\n",
    "tab.add(worldjy, \"世界各国15岁以上受过高等教育的人口百分比\")\n",
    "tab.add(worldgdp, \"世界各国人均国内生产总值-增长\")\n",
    "tab.render_notebook()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 关系图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Entity</th>\n",
       "      <th>Year</th>\n",
       "      <th>percent</th>\n",
       "      <th>jy</th>\n",
       "      <th>GDP</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Afghanistan</td>\n",
       "      <td>2017</td>\n",
       "      <td>4.136347</td>\n",
       "      <td>2.52</td>\n",
       "      <td>10.270786</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Albania</td>\n",
       "      <td>2017</td>\n",
       "      <td>2.208414</td>\n",
       "      <td>1.62</td>\n",
       "      <td>3.163863</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Algeria</td>\n",
       "      <td>2017</td>\n",
       "      <td>3.661094</td>\n",
       "      <td>2.16</td>\n",
       "      <td>-0.547390</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>American Samoa</td>\n",
       "      <td>2017</td>\n",
       "      <td>2.939668</td>\n",
       "      <td>0.41</td>\n",
       "      <td>-0.155635</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Andean Latin America</td>\n",
       "      <td>2017</td>\n",
       "      <td>2.610385</td>\n",
       "      <td>3.03</td>\n",
       "      <td>1.325673</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>Andorra</td>\n",
       "      <td>2017</td>\n",
       "      <td>3.729532</td>\n",
       "      <td>0.24</td>\n",
       "      <td>2.404977</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>Angola</td>\n",
       "      <td>2017</td>\n",
       "      <td>4.160484</td>\n",
       "      <td>13.89</td>\n",
       "      <td>14.820467</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Antigua and Barbuda</td>\n",
       "      <td>2017</td>\n",
       "      <td>2.557963</td>\n",
       "      <td>2.73</td>\n",
       "      <td>4.027102</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>Argentina</td>\n",
       "      <td>2017</td>\n",
       "      <td>3.665488</td>\n",
       "      <td>14.69</td>\n",
       "      <td>5.655760</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>Armenia</td>\n",
       "      <td>2017</td>\n",
       "      <td>2.754583</td>\n",
       "      <td>1.99</td>\n",
       "      <td>3.236465</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                 Entity  Year   percent     jy        GDP\n",
       "0           Afghanistan  2017  4.136347   2.52  10.270786\n",
       "1               Albania  2017  2.208414   1.62   3.163863\n",
       "2               Algeria  2017  3.661094   2.16  -0.547390\n",
       "3        American Samoa  2017  2.939668   0.41  -0.155635\n",
       "4  Andean Latin America  2017  2.610385   3.03   1.325673\n",
       "5               Andorra  2017  3.729532   0.24   2.404977\n",
       "6                Angola  2017  4.160484  13.89  14.820467\n",
       "7   Antigua and Barbuda  2017  2.557963   2.73   4.027102\n",
       "8             Argentina  2017  3.665488  14.69   5.655760\n",
       "9               Armenia  2017  2.754583   1.99   3.236465"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "top10= pd.read_csv('top10.csv',encoding = 'utf8')\n",
    "top10"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"9cadf88e716a4943a5692d1a41a89228\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_9cadf88e716a4943a5692d1a41a89228 = echarts.init(\n",
       "                    document.getElementById('9cadf88e716a4943a5692d1a41a89228'), 'white', {renderer: 'canvas'});\n",
       "                var option_9cadf88e716a4943a5692d1a41a89228 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\\u60a3\\u75c5\\u7387\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": true,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"Afghanistan\",\n",
       "                    4.1363471\n",
       "                ],\n",
       "                [\n",
       "                    \"Albania\",\n",
       "                    2.2084141980000003\n",
       "                ],\n",
       "                [\n",
       "                    \"Algeria\",\n",
       "                    3.661094496\n",
       "                ],\n",
       "                [\n",
       "                    \"American Samoa\",\n",
       "                    2.9396680610000003\n",
       "                ],\n",
       "                [\n",
       "                    \"Andean Latin America\",\n",
       "                    2.610385117\n",
       "                ],\n",
       "                [\n",
       "                    \"Andorra\",\n",
       "                    3.729531686\n",
       "                ],\n",
       "                [\n",
       "                    \"Angola\",\n",
       "                    4.160484197\n",
       "                ],\n",
       "                [\n",
       "                    \"Antigua and Barbuda\",\n",
       "                    2.557963052\n",
       "                ],\n",
       "                [\n",
       "                    \"Argentina\",\n",
       "                    3.6654882719999997\n",
       "                ],\n",
       "                [\n",
       "                    \"Armenia\",\n",
       "                    2.7545826960000004\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0.5\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0,\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"GDP\\u589e\\u52a0\\u503c\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": true,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"Afghanistan\",\n",
       "                    10.27078613\n",
       "                ],\n",
       "                [\n",
       "                    \"Albania\",\n",
       "                    3.1638625539999996\n",
       "                ],\n",
       "                [\n",
       "                    \"Algeria\",\n",
       "                    -0.547389546\n",
       "                ],\n",
       "                [\n",
       "                    \"American Samoa\",\n",
       "                    -0.155634548\n",
       "                ],\n",
       "                [\n",
       "                    \"Andean Latin America\",\n",
       "                    1.325672934\n",
       "                ],\n",
       "                [\n",
       "                    \"Andorra\",\n",
       "                    2.404977175\n",
       "                ],\n",
       "                [\n",
       "                    \"Angola\",\n",
       "                    14.82046663\n",
       "                ],\n",
       "                [\n",
       "                    \"Antigua and Barbuda\",\n",
       "                    4.027102125\n",
       "                ],\n",
       "                [\n",
       "                    \"Argentina\",\n",
       "                    5.655759675\n",
       "                ],\n",
       "                [\n",
       "                    \"Armenia\",\n",
       "                    3.236465499\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0.5\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0,\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\\u6559\\u80b2\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": true,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"Afghanistan\",\n",
       "                    2.52\n",
       "                ],\n",
       "                [\n",
       "                    \"Albania\",\n",
       "                    1.62\n",
       "                ],\n",
       "                [\n",
       "                    \"Algeria\",\n",
       "                    2.16\n",
       "                ],\n",
       "                [\n",
       "                    \"American Samoa\",\n",
       "                    0.41\n",
       "                ],\n",
       "                [\n",
       "                    \"Andean Latin America\",\n",
       "                    3.03\n",
       "                ],\n",
       "                [\n",
       "                    \"Andorra\",\n",
       "                    0.24\n",
       "                ],\n",
       "                [\n",
       "                    \"Angola\",\n",
       "                    13.89\n",
       "                ],\n",
       "                [\n",
       "                    \"Antigua and Barbuda\",\n",
       "                    2.73\n",
       "                ],\n",
       "                [\n",
       "                    \"Argentina\",\n",
       "                    14.69\n",
       "                ],\n",
       "                [\n",
       "                    \"Armenia\",\n",
       "                    1.99\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0.5\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0,\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u60a3\\u75c5\\u7387\",\n",
       "                \"GDP\\u589e\\u52a0\\u503c\",\n",
       "                \"\\u6559\\u80b2\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u60a3\\u75c5\\u7387\": true,\n",
       "                \"GDP\\u589e\\u52a0\\u503c\": true,\n",
       "                \"\\u6559\\u80b2\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"axisTick\": {\n",
       "                \"show\": true,\n",
       "                \"alignWithLabel\": true,\n",
       "                \"inside\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"boundaryGap\": false,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            },\n",
       "            \"data\": [\n",
       "                \"Afghanistan\",\n",
       "                \"Albania\",\n",
       "                \"Algeria\",\n",
       "                \"American Samoa\",\n",
       "                \"Andean Latin America\",\n",
       "                \"Andorra\",\n",
       "                \"Angola\",\n",
       "                \"Antigua and Barbuda\",\n",
       "                \"Argentina\",\n",
       "                \"Armenia\"\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u5341\\u56fd\\u6291\\u90c1\\u75c7\\u60a3\\u75c5\\u7387\\u4e0e\\u6559\\u80b2\\u3001\\u56fd\\u5bb6\\u7ecf\\u6d4e\\u73af\\u5883\\u5173\\u7cfb\\u56fe\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_9cadf88e716a4943a5692d1a41a89228.setOption(option_9cadf88e716a4943a5692d1a41a89228);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x141fd8e2ef0>"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def guanxi() -> Line:\n",
    "    c = (\n",
    "        Line()\n",
    "        .add_xaxis(list(top10.Entity))\n",
    "        .add_yaxis(\"患病率\",list(top10.percent), is_smooth=True)\n",
    "        .add_yaxis(\"GDP增加值\", list(top10.GDP), is_smooth=True)\n",
    "        .add_yaxis(\"教育\", list(top10.jy), is_smooth=True)\n",
    "        .set_series_opts(\n",
    "            areastyle_opts=opts.AreaStyleOpts(opacity=0.5),\n",
    "            label_opts=opts.LabelOpts(is_show=False),\n",
    "        )\n",
    "        .set_global_opts(\n",
    "            title_opts=opts.TitleOpts(title=\"十国抑郁症患病率与教育、国家经济环境关系图\"),\n",
    "            xaxis_opts=opts.AxisOpts(\n",
    "                axistick_opts=opts.AxisTickOpts(is_align_with_label=True),\n",
    "                is_scale=False,\n",
    "                boundary_gap=False,\n",
    "            ),\n",
    "        )\n",
    "    )\n",
    "    return c\n",
    "\n",
    "guanxi().render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"06680a2f6d0f41669faac572e3cf563c\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_06680a2f6d0f41669faac572e3cf563c = echarts.init(\n",
       "                    document.getElementById('06680a2f6d0f41669faac572e3cf563c'), 'white', {renderer: 'canvas'});\n",
       "                var option_06680a2f6d0f41669faac572e3cf563c = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\\u60a3\\u75c5\\u7387\",\n",
       "            \"data\": [\n",
       "                4.1363471,\n",
       "                2.2084141980000003,\n",
       "                3.661094496,\n",
       "                2.9396680610000003,\n",
       "                2.610385117,\n",
       "                3.729531686,\n",
       "                4.160484197,\n",
       "                2.557963052,\n",
       "                3.6654882719999997,\n",
       "                2.7545826960000004\n",
       "            ],\n",
       "            \"barCategoryGap\": \"20%\",\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"\\u6559\\u80b2\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": false,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"Afghanistan\",\n",
       "                    2.52\n",
       "                ],\n",
       "                [\n",
       "                    \"Albania\",\n",
       "                    1.62\n",
       "                ],\n",
       "                [\n",
       "                    \"Algeria\",\n",
       "                    2.16\n",
       "                ],\n",
       "                [\n",
       "                    \"American Samoa\",\n",
       "                    0.41\n",
       "                ],\n",
       "                [\n",
       "                    \"Andean Latin America\",\n",
       "                    3.03\n",
       "                ],\n",
       "                [\n",
       "                    \"Andorra\",\n",
       "                    0.24\n",
       "                ],\n",
       "                [\n",
       "                    \"Angola\",\n",
       "                    13.89\n",
       "                ],\n",
       "                [\n",
       "                    \"Antigua and Barbuda\",\n",
       "                    2.73\n",
       "                ],\n",
       "                [\n",
       "                    \"Argentina\",\n",
       "                    14.69\n",
       "                ],\n",
       "                [\n",
       "                    \"Armenia\",\n",
       "                    1.99\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u60a3\\u75c5\\u7387\",\n",
       "                \"\\u6559\\u80b2\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u60a3\\u75c5\\u7387\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            },\n",
       "            \"data\": [\n",
       "                \"Afghanistan\",\n",
       "                \"Albania\",\n",
       "                \"Algeria\",\n",
       "                \"American Samoa\",\n",
       "                \"Andean Latin America\",\n",
       "                \"Andorra\",\n",
       "                \"Angola\",\n",
       "                \"Antigua and Barbuda\",\n",
       "                \"Argentina\",\n",
       "                \"Armenia\"\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u60a3\\u75c5\\u7387\\u4e0e\\u9ad8\\u7b49\\u6559\\u80b2\\u5173\\u7cfb\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_06680a2f6d0f41669faac572e3cf563c.setOption(option_06680a2f6d0f41669faac572e3cf563c);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x141fd918eb8>"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\n",
    "\n",
    "def jiaoyu() -> Bar:\n",
    "    x = list(top10.Entity)\n",
    "    bar = (\n",
    "        Bar()\n",
    "        .add_xaxis(list(top10.Entity))\n",
    "        .add_yaxis(\"患病率\",list(top10.percent))\n",
    "        .set_global_opts(title_opts=opts.TitleOpts(title=\"患病率与高等教育关系\"))\n",
    "    )\n",
    "    line = (\n",
    "        Line()\n",
    "        .add_xaxis(list(top10.Entity))\n",
    "        .add_yaxis(\"教育\", list(top10.jy))\n",
    "    )\n",
    "    bar.overlap(line)\n",
    "    return bar\n",
    "\n",
    "jiaoyu().render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"c04bdff56fa641b582223fbcf76d6825\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts'], function(echarts) {\n",
       "                var chart_c04bdff56fa641b582223fbcf76d6825 = echarts.init(\n",
       "                    document.getElementById('c04bdff56fa641b582223fbcf76d6825'), 'white', {renderer: 'canvas'});\n",
       "                var option_c04bdff56fa641b582223fbcf76d6825 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"bar\",\n",
       "            \"name\": \"\\u60a3\\u75c5\\u7387\",\n",
       "            \"data\": [\n",
       "                4.1363471,\n",
       "                2.2084141980000003,\n",
       "                3.661094496,\n",
       "                2.9396680610000003,\n",
       "                2.610385117,\n",
       "                3.729531686,\n",
       "                4.160484197,\n",
       "                2.557963052,\n",
       "                3.6654882719999997,\n",
       "                2.7545826960000004\n",
       "            ],\n",
       "            \"barCategoryGap\": \"20%\",\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            }\n",
       "        },\n",
       "        {\n",
       "            \"type\": \"line\",\n",
       "            \"name\": \"GDP\\u589e\\u52a0\\u503c\",\n",
       "            \"connectNulls\": false,\n",
       "            \"symbolSize\": 4,\n",
       "            \"showSymbol\": true,\n",
       "            \"smooth\": false,\n",
       "            \"step\": false,\n",
       "            \"data\": [\n",
       "                [\n",
       "                    \"Afghanistan\",\n",
       "                    10.27078613\n",
       "                ],\n",
       "                [\n",
       "                    \"Albania\",\n",
       "                    3.1638625539999996\n",
       "                ],\n",
       "                [\n",
       "                    \"Algeria\",\n",
       "                    -0.547389546\n",
       "                ],\n",
       "                [\n",
       "                    \"American Samoa\",\n",
       "                    -0.155634548\n",
       "                ],\n",
       "                [\n",
       "                    \"Andean Latin America\",\n",
       "                    1.325672934\n",
       "                ],\n",
       "                [\n",
       "                    \"Andorra\",\n",
       "                    2.404977175\n",
       "                ],\n",
       "                [\n",
       "                    \"Angola\",\n",
       "                    14.82046663\n",
       "                ],\n",
       "                [\n",
       "                    \"Antigua and Barbuda\",\n",
       "                    4.027102125\n",
       "                ],\n",
       "                [\n",
       "                    \"Argentina\",\n",
       "                    5.655759675\n",
       "                ],\n",
       "                [\n",
       "                    \"Armenia\",\n",
       "                    3.236465499\n",
       "                ]\n",
       "            ],\n",
       "            \"hoverAnimation\": true,\n",
       "            \"label\": {\n",
       "                \"show\": true,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"lineStyle\": {\n",
       "                \"show\": true,\n",
       "                \"width\": 1,\n",
       "                \"opacity\": 1,\n",
       "                \"curveness\": 0,\n",
       "                \"type\": \"solid\"\n",
       "            },\n",
       "            \"areaStyle\": {\n",
       "                \"opacity\": 0\n",
       "            },\n",
       "            \"zlevel\": 0,\n",
       "            \"z\": 0\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u60a3\\u75c5\\u7387\",\n",
       "                \"GDP\\u589e\\u52a0\\u503c\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"\\u60a3\\u75c5\\u7387\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            },\n",
       "            \"data\": [\n",
       "                \"Afghanistan\",\n",
       "                \"Albania\",\n",
       "                \"Algeria\",\n",
       "                \"American Samoa\",\n",
       "                \"Andean Latin America\",\n",
       "                \"Andorra\",\n",
       "                \"Angola\",\n",
       "                \"Antigua and Barbuda\",\n",
       "                \"Argentina\",\n",
       "                \"Armenia\"\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"show\": true,\n",
       "            \"scale\": false,\n",
       "            \"nameLocation\": \"end\",\n",
       "            \"nameGap\": 15,\n",
       "            \"gridIndex\": 0,\n",
       "            \"inverse\": false,\n",
       "            \"offset\": 0,\n",
       "            \"splitNumber\": 5,\n",
       "            \"minInterval\": 0,\n",
       "            \"splitLine\": {\n",
       "                \"show\": false,\n",
       "                \"lineStyle\": {\n",
       "                    \"show\": true,\n",
       "                    \"width\": 1,\n",
       "                    \"opacity\": 1,\n",
       "                    \"curveness\": 0,\n",
       "                    \"type\": \"solid\"\n",
       "                }\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u60a3\\u75c5\\u7387\\u4e0e\\u7ecf\\u6d4e\\u73af\\u5883\\u5173\\u7cfb\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ]\n",
       "};\n",
       "                chart_c04bdff56fa641b582223fbcf76d6825.setOption(option_c04bdff56fa641b582223fbcf76d6825);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x141fd8e2860>"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def jingjihuanjing() -> Bar:\n",
    "    x = list(top10.Entity)\n",
    "    bar = (\n",
    "        Bar()\n",
    "        .add_xaxis(list(top10.Entity))\n",
    "        .add_yaxis(\"患病率\",list(top10.percent))\n",
    "        .set_global_opts(title_opts=opts.TitleOpts(title=\"患病率与经济环境关系\"))\n",
    "    )\n",
    "    line = (\n",
    "        Line()\n",
    "        .add_xaxis(list(top10.Entity))\n",
    "        .add_yaxis(\"GDP增加值\", list(top10.GDP))\n",
    "    )\n",
    "    bar.overlap(line)\n",
    "    return bar\n",
    "\n",
    "jingjihuanjing().render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
